Freigeben über


WebPubSubExtensions.CheckWebPubSubNameAvailabilityAsync Methode

Definition

Überprüft, ob der Ressourcenname gültig ist und nicht bereits verwendet wird.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability
  • Vorgang IdWebPubSub_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailability>> CheckWebPubSubNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckWebPubSubNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailability>>
<Extension()>
Public Function CheckWebPubSubNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As WebPubSubNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WebPubSubNameAvailability))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den die Methode ausgeführt wird.

location
AzureLocation

die Region.

content
WebPubSubNameAvailabilityContent

Für den Vorgang bereitgestellte Parameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: