Freigeben über


SearchExtensions.CheckSearchServiceNameAvailabilityAsync Methode

Definition

Überprüft, ob der angegebene Suchdienstname zur Verwendung verfügbar ist. Suchdienst Namen müssen global eindeutig sein, da sie Teil des Dienst-URI (https://< name.search.windows.net>) sind.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability
  • Vorgangs-IdServices_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>> CheckSearchServiceNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent content, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckSearchServiceNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>>
<Extension()>
Public Function CheckSearchServiceNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As SearchServiceNameAvailabilityContent, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchServiceNameAvailabilityResult))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

content
SearchServiceNameAvailabilityContent

Der Zu überprüfende Ressourcenname und -typ.

searchManagementRequestOptions
SearchManagementRequestOptions

Parametergruppe.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: