Udostępnij za pośrednictwem


ProvisioningServiceClient(String, ProvisioningServiceClientOptions) Constructor

Definition

Create a new instance of this client.

public ProvisioningServiceClient (string connectionString, Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClientOptions options = default);
new Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient : string * Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClientOptions -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient
Public Sub New (connectionString As String, Optional options As ProvisioningServiceClientOptions = Nothing)

Parameters

connectionString
String

The connection string of the Device Provisioning Service.

options
ProvisioningServiceClientOptions

The optional client settings.

Exceptions

If the provided connectionString is null.

If the provided connectionString is empty or white space.

If the provided connectionString has incorrect value for host name.

If the provided connectionString is missing host name, shared access key name or either shared access key or shared access signature.

If the provided shared access signature is expired.

Remarks

This client is created using the connection string for your Device Provisioning Service instance.

Applies to