Freigeben über


SearchExtensions.CheckSearchServiceNameAvailability 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
  • Vorgang IdServices_CheckNameAvailability
public static Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult> CheckSearchServiceNameAvailability (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 CheckSearchServiceNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>
<Extension()>
Public Function CheckSearchServiceNameAvailability (subscriptionResource As SubscriptionResource, content As SearchServiceNameAvailabilityContent, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SearchServiceNameAvailabilityResult)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den 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: