WebSiteManagementClient.CheckNameAvailabilityWithHttpMessagesAsync Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Проверьте, доступно ли имя ресурса.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>> CheckNameAvailabilityWithHttpMessagesAsync (string name, Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes type, bool? isFqdn = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityWithHttpMessagesAsync : string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>>
override this.CheckNameAvailabilityWithHttpMessagesAsync : string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>>
Public Function CheckNameAvailabilityWithHttpMessagesAsync (name As String, type As CheckNameResourceTypes, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ResourceNameAvailabilityInner))
Параметры
- name
- String
Имя ресурса для проверки.
Тип ресурса, используемый для проверки. Возможные значения: "Site", "Slot", "HostingEnvironment", "PublishingUser", "Microsoft.Web/sites", "Microsoft.Web/sites/slots", "Microsoft.Web/hostingEnvironments", "Microsoft.Web/publishingUsers"
- customHeaders
- Dictionary<String,List<String>>
Заголовки, которые будут добавлены в запрос.
- cancellationToken
- CancellationToken
Токен отмены.
Возвращаемое значение
Реализации
Исключения
Возникает, когда операция возвращает недопустимый код состояния
Возникает, если не удается десериализовать ответ
Возникает, если обязательный параметр имеет значение NULL
Возникает, если обязательный параметр имеет значение NULL
Комментарии
Описание для параметра Проверка доступности имени ресурса.
Применяется к
Azure SDK for .NET