ProvisioningServiceClient.CreateFromConnectionString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateFromConnectionString(String, HttpTransportSettings) |
Create a new instance of the |
CreateFromConnectionString(String) |
Create a new instance of the |
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
Azure SDK for .NET