다음을 통해 공유


IotDpsResourceOperationsExtensions.CheckProvisioningServiceNameAvailabilityAsync Method

Definition

Check if a provisioning service name is available.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DeviceProvisioningServices.Models.NameAvailabilityInfo> CheckProvisioningServiceNameAvailabilityAsync (this Microsoft.Azure.Management.DeviceProvisioningServices.IIotDpsResourceOperations operations, string name, System.Threading.CancellationToken cancellationToken = default);
static member CheckProvisioningServiceNameAvailabilityAsync : Microsoft.Azure.Management.DeviceProvisioningServices.IIotDpsResourceOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DeviceProvisioningServices.Models.NameAvailabilityInfo>
<Extension()>
Public Function CheckProvisioningServiceNameAvailabilityAsync (operations As IIotDpsResourceOperations, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NameAvailabilityInfo)

Parameters

operations
IIotDpsResourceOperations

The operations group for this extension method.

name
String

The name of the Provisioning Service to check.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable

Applies to