ProvisioningDeviceClient.RegisterAsync Method

Definition

Overloads

RegisterAsync()

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

RegisterAsync(ProvisioningRegistrationAdditionalData)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

RegisterAsync(CancellationToken)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

RegisterAsync(ProvisioningRegistrationAdditionalData, CancellationToken)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

RegisterAsync()

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult> RegisterAsync ();
member this.RegisterAsync : unit -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult>
Public Function RegisterAsync () As Task(Of DeviceRegistrationResult)

Returns

Task<DeviceRegistrationResult>

The registration result.

RegisterAsync(ProvisioningRegistrationAdditionalData)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult> RegisterAsync (Microsoft.Azure.Devices.Provisioning.Client.ProvisioningRegistrationAdditionalData data);
member this.RegisterAsync : Microsoft.Azure.Devices.Provisioning.Client.ProvisioningRegistrationAdditionalData -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult>
Public Function RegisterAsync (data As ProvisioningRegistrationAdditionalData) As Task(Of DeviceRegistrationResult)

Parameters

data
ProvisioningRegistrationAdditionalData

The optional additional data.

Returns

Task<DeviceRegistrationResult>

The registration result.

RegisterAsync(CancellationToken)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult> RegisterAsync (System.Threading.CancellationToken cancellationToken);
member this.RegisterAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult>
Public Function RegisterAsync (cancellationToken As CancellationToken) As Task(Of DeviceRegistrationResult)

Parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<DeviceRegistrationResult>

The registration result.

RegisterAsync(ProvisioningRegistrationAdditionalData, CancellationToken)

Registers the current device using the Device Provisioning Service and assigns it to an IoT Hub.

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult> RegisterAsync (Microsoft.Azure.Devices.Provisioning.Client.ProvisioningRegistrationAdditionalData data, System.Threading.CancellationToken cancellationToken);
member this.RegisterAsync : Microsoft.Azure.Devices.Provisioning.Client.ProvisioningRegistrationAdditionalData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Client.DeviceRegistrationResult>
Public Function RegisterAsync (data As ProvisioningRegistrationAdditionalData, cancellationToken As CancellationToken) As Task(Of DeviceRegistrationResult)

Parameters

data
ProvisioningRegistrationAdditionalData

The custom content.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<DeviceRegistrationResult>

The registration result.

Applies to