Freigeben über


HealthcareApisExtensions.CheckHealthcareApisNameAvailabilityAsync Methode

Definition

Überprüfen Sie, ob ein Dienst instance Name verfügbar ist.

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

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

content
HealthcareApisNameAvailabilityContent

Legen Sie den name-Parameter in der CheckNameAvailabilityParameters-Struktur auf den Namen des zu überprüfenden Diensts fest, instance.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: