Sdílet prostřednictvím


ProvisioningDeviceClient.Create Method

Definition

Creates an instance of the Device Provisioning Client.

public static Microsoft.Azure.Devices.Provisioning.Client.ProvisioningDeviceClient Create (string globalDeviceEndpoint, string idScope, Microsoft.Azure.Devices.Shared.SecurityProvider securityProvider, Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandler transport);
static member Create : string * string * Microsoft.Azure.Devices.Shared.SecurityProvider * Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandler -> Microsoft.Azure.Devices.Provisioning.Client.ProvisioningDeviceClient
Public Shared Function Create (globalDeviceEndpoint As String, idScope As String, securityProvider As SecurityProvider, transport As ProvisioningTransportHandler) As ProvisioningDeviceClient

Parameters

globalDeviceEndpoint
String

The GlobalDeviceEndpoint for the Device Provisioning Service.

idScope
String

The IDScope for the Device Provisioning Service.

securityProvider
SecurityProvider

The security provider instance.

transport
ProvisioningTransportHandler

The type of transport (e.g. HTTP, AMQP, MQTT).

Returns

An instance of the ProvisioningDeviceClient

Applies to