DeviceManagementClient Constructors
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
| Name | Description |
|---|---|
| DeviceManagementClient() |
Initializes a new instance of DeviceManagementClient for mocking. |
| DeviceManagementClient(DeviceManagementClientSettings) |
Initializes a new instance of DeviceManagementClient from a DeviceManagementClientSettings. |
| DeviceManagementClient(Uri, String, TokenCredential) |
Initializes a new instance of DeviceManagementClient. |
| DeviceManagementClient(Uri, String, TokenCredential, DeviceUpdateClientOptions) |
Initializes a new instance of DeviceManagementClient. |
DeviceManagementClient()
- Source:
- DeviceManagementClient.cs
Initializes a new instance of DeviceManagementClient for mocking.
protected DeviceManagementClient();
Protected Sub New ()
Applies to
DeviceManagementClient(DeviceManagementClientSettings)
- Source:
- DeviceManagementClient.cs
Initializes a new instance of DeviceManagementClient from a DeviceManagementClientSettings.
public DeviceManagementClient(Azure.IoT.DeviceUpdate.DeviceManagementClientSettings settings);
new Azure.IoT.DeviceUpdate.DeviceManagementClient : Azure.IoT.DeviceUpdate.DeviceManagementClientSettings -> Azure.IoT.DeviceUpdate.DeviceManagementClient
Public Sub New (settings As DeviceManagementClientSettings)
Parameters
- settings
- DeviceManagementClientSettings
The settings for DeviceManagementClient.
Applies to
DeviceManagementClient(Uri, String, TokenCredential)
- Source:
- DeviceManagementClient.cs
Initializes a new instance of DeviceManagementClient.
public DeviceManagementClient(Uri endpoint, string instanceId, Azure.Core.TokenCredential credential);
new Azure.IoT.DeviceUpdate.DeviceManagementClient : Uri * string * Azure.Core.TokenCredential -> Azure.IoT.DeviceUpdate.DeviceManagementClient
Public Sub New (endpoint As Uri, instanceId As String, credential As TokenCredential)
Parameters
- endpoint
- Uri
Service endpoint.
- instanceId
- String
The Device Update for IoT Hub account instance identifier.
- credential
- TokenCredential
A credential used to authenticate to the service.
Exceptions
endpoint, instanceId or credential is null.
instanceId is an empty string, and was expected to be non-empty.
Applies to
DeviceManagementClient(Uri, String, TokenCredential, DeviceUpdateClientOptions)
- Source:
- DeviceManagementClient.cs
Initializes a new instance of DeviceManagementClient.
public DeviceManagementClient(Uri endpoint, string instanceId, Azure.Core.TokenCredential credential, Azure.IoT.DeviceUpdate.DeviceUpdateClientOptions options);
new Azure.IoT.DeviceUpdate.DeviceManagementClient : Uri * string * Azure.Core.TokenCredential * Azure.IoT.DeviceUpdate.DeviceUpdateClientOptions -> Azure.IoT.DeviceUpdate.DeviceManagementClient
Public Sub New (endpoint As Uri, instanceId As String, credential As TokenCredential, options As DeviceUpdateClientOptions)
Parameters
- endpoint
- Uri
Service endpoint.
- instanceId
- String
The Device Update for IoT Hub account instance identifier.
- credential
- TokenCredential
A credential used to authenticate to the service.
- options
- DeviceUpdateClientOptions
The options for configuring the client.
Exceptions
endpoint, instanceId or credential is null.
instanceId is an empty string, and was expected to be non-empty.