Freigeben über


MediaExtensions.CheckMediaServicesNameAvailability Methode

Definition

Überprüft, ob der Media Service-Ressourcenname verfügbar ist.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability
  • Vorgangs-IdLocations_CheckNameAvailability
public static Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult> CheckMediaServicesNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckMediaServicesNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>
<Extension()>
Public Function CheckMediaServicesNameAvailability (subscriptionResource As SubscriptionResource, locationName As AzureLocation, content As MediaServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MediaServicesNameAvailabilityResult)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

locationName
AzureLocation

Name des Speicherorts.

content
MediaServicesNameAvailabilityContent

Die Anforderungsparameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: