FunctionName Interface
Implements
public interface FunctionName
implements java.lang.annotation.Annotation
The FunctionName
annotation is used to specify to the Azure Functions tooling what name is to be applied to the associated function when the function is deployed onto Azure. This becomes the endpoint (in the case of an HttpTrigger function, for example, but more generally it is what is shown to users in the Azure Portal, so a succinct and understandable function name is useful.
An example of how the FunctionName
annotation is shown in the code snippet below. Note that it is applied to the function that will be called by Azure, based on the specified trigger (in the code below it is a HttpTrigger).
@FunctionName("redirect")
public HttpResponseMessage<String> redirectFunction(
@HttpTrigger(name = "req",
methods = {"get"}, authLevel = AuthorizationLevel.ANONYMOUS)
HttpRequestMessage<Optional<String>> request) {
....
}
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
value()
The name of the function. |
Method Details
value
public abstract String value()
The name of the function.
Returns:
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應