你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSiteSlotResource.GetSiteSlotFunctionAsync 方法

定义

按网站的 ID 或部署槽位获取函数信息的说明。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}
  • 操作IdWebApps_GetInstanceFunctionSlot
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.SiteSlotFunctionResource>> GetSiteSlotFunctionAsync (string functionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSiteSlotFunctionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.SiteSlotFunctionResource>>
override this.GetSiteSlotFunctionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.SiteSlotFunctionResource>>
Public Overridable Function GetSiteSlotFunctionAsync (functionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SiteSlotFunctionResource))

参数

functionName
String

函数名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

functionName 是一个空字符串,预期为非空。

functionName 为 null。

适用于