Megosztás a következőn keresztül:


ProvisioningServiceClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String, HttpTransportSettings)

Create a new instance of the ProvisioningServiceClient that exposes the API to the Device Provisioning Service.

CreateFromConnectionString(String)

Create a new instance of the ProvisioningServiceClient that exposes the API to the Device Provisioning Service.

CreateFromConnectionString(String, HttpTransportSettings)

Create a new instance of the ProvisioningServiceClient that exposes the API to the Device Provisioning Service.

public static Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient CreateFromConnectionString (string connectionString, Microsoft.Azure.Devices.Provisioning.Service.HttpTransportSettings httpTransportSettings);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Provisioning.Service.HttpTransportSettings -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient
Public Shared Function CreateFromConnectionString (connectionString As String, httpTransportSettings As HttpTransportSettings) As ProvisioningServiceClient

Parameters

connectionString
String

the string that cares the connection string of the Device Provisioning Service.

httpTransportSettings
HttpTransportSettings

Specifies the HTTP transport settings for the request

Returns

The ProvisioningServiceClient with the new instance of this object.

Exceptions

if the connectionString is null or empty.

Remarks

The Device Provisioning Service Client is created based on a Provisioning Connection string. Once you create a Device Provisioning Service on Azure, you can get the connection string on the Azure portal.

Applies to

CreateFromConnectionString(String)

Create a new instance of the ProvisioningServiceClient that exposes the API to the Device Provisioning Service.

public static Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient CreateFromConnectionString (string connectionString);
static member CreateFromConnectionString : string -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningServiceClient
Public Shared Function CreateFromConnectionString (connectionString As String) As ProvisioningServiceClient

Parameters

connectionString
String

the string that cares the connection string of the Device Provisioning Service.

Returns

The ProvisioningServiceClient with the new instance of this object.

Exceptions

if the connectionString is null or empty.

Remarks

The Device Provisioning Service Client is created based on a Provisioning Connection string. Once you create a Device Provisioning Service on Azure, you can get the connection string on the Azure portal.

Applies to