Partilhar via


DeviceUpdateExtensions.CheckDeviceUpdateNameAvailabilityAsync Method

Definition

Overloads

CheckDeviceUpdateNameAvailabilityAsync(SubscriptionResource, CheckNameAvailabilityContent, CancellationToken)

Checks ADU resource name availability.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability
  • Operation Id: CheckNameAvailability
CheckDeviceUpdateNameAvailabilityAsync(SubscriptionResource, DeviceUpdateAvailabilityContent, CancellationToken)

Checks ADU resource name availability.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability
  • Operation Id: CheckNameAvailability

CheckDeviceUpdateNameAvailabilityAsync(SubscriptionResource, CheckNameAvailabilityContent, CancellationToken)

Source:
DeviceUpdateExtensions.cs

Checks ADU resource name availability.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability
  • Operation Id: CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityResponse>> CheckDeviceUpdateNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckDeviceUpdateNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityResponse>>
<Extension()>
Public Function CheckDeviceUpdateNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As CheckNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckNameAvailabilityResponse))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
CheckNameAvailabilityContent

Check Name Availability Request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to

CheckDeviceUpdateNameAvailabilityAsync(SubscriptionResource, DeviceUpdateAvailabilityContent, CancellationToken)

Source:
DeviceUpdateExtensions.cs

Checks ADU resource name availability.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability
  • Operation Id: CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateNameAvailabilityResult>> CheckDeviceUpdateNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckDeviceUpdateNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateNameAvailabilityResult>>
<Extension()>
Public Function CheckDeviceUpdateNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As DeviceUpdateAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeviceUpdateNameAvailabilityResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
DeviceUpdateAvailabilityContent

Check Name Availability Request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or content is null.

Applies to