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

FrontDoorCustomDomainCollection.GetAsync(String, CancellationToken) 方法

定义

获取指定的订阅、资源组和配置文件下具有指定域名的现有 AzureFrontDoor 域。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}
  • 操作IdFrontDoorCustomDomains_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorCustomDomainResource>> GetAsync (string customDomainName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorCustomDomainResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.FrontDoorCustomDomainResource>>
Public Overridable Function GetAsync (customDomainName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FrontDoorCustomDomainResource))

参数

customDomainName
String

配置文件下全局唯一的域的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

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

customDomainName 为 null。

适用于