Share via


MockableMediaSubscriptionResource.CheckMediaServicesNameAvailabilityAsync Method

Definition

Checks whether the Media Service resource name is available.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability
  • Operation Id: Locations_CheckNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>> CheckMediaServicesNameAvailabilityAsync (Azure.Core.AzureLocation locationName, Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckMediaServicesNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>>
override this.CheckMediaServicesNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>>
Public Overridable Function CheckMediaServicesNameAvailabilityAsync (locationName As AzureLocation, content As MediaServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MediaServicesNameAvailabilityResult))

Parameters

locationName
AzureLocation

Location name.

content
MediaServicesNameAvailabilityContent

The request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to