Skip to content

Commit 3fd649c

Browse files
Merge pull request #258719 from mattchenderson/quckstart-iso
removing range reference and correcting terms
2 parents ec3ba8f + 5166cc0 commit 3fd649c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/azure-functions/functions-create-your-first-function-visual-studio.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,21 @@ Visual Studio creates a project and class that contains boilerplate code for the
5959

6060
## Rename the function
6161

62-
The `FunctionName` method attribute sets the name of the function, which by default is generated as `Function1`. Since the tooling doesn't let you override the default function name when you create your project, take a minute to create a better name for the function class, file, and metadata.
62+
The `Function` method attribute sets the name of the function, which by default is generated as `Function1`. Since the tooling doesn't let you override the default function name when you create your project, take a minute to create a better name for the function class, file, and metadata.
6363

6464
1. In **File Explorer**, right-click the Function1.cs file and rename it to `HttpExample.cs`.
6565

6666
1. In the code, rename the Function1 class to `HttpExample`.
6767

68-
1. In the `HttpTrigger` method named `Run`, rename the `FunctionName` method attribute to `HttpExample`.
68+
1. In the method named `Run`, rename the `Function` method attribute to `HttpExample`.
6969

7070
Your function definition should now look like the following code:
7171

72-
:::code language="csharp" source="~/functions-docs-csharp/http-trigger-isolated/HttpExample.cs" range="11-13":::
72+
```csharp
73+
[Function("HttpExample")]
74+
public static HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req,
75+
FunctionContext executionContext)
76+
```
7377

7478
Now that you've renamed the function, you can test it on your local computer.
7579

0 commit comments

Comments
 (0)