RegistryManager.Create Method

Definition

Overloads

Create(String, AzureSasCredential, HttpTransportSettings)

Creates an instance of RegistryManager.

Create(String, TokenCredential, HttpTransportSettings)

Creates an instance of RegistryManager.

Create(String, AzureSasCredential, HttpTransportSettings)

Creates an instance of RegistryManager.

public static Microsoft.Azure.Devices.RegistryManager Create (string hostName, Azure.AzureSasCredential credential, Microsoft.Azure.Devices.HttpTransportSettings transportSettings = default);
static member Create : string * Azure.AzureSasCredential * Microsoft.Azure.Devices.HttpTransportSettings -> Microsoft.Azure.Devices.RegistryManager
Public Shared Function Create (hostName As String, credential As AzureSasCredential, Optional transportSettings As HttpTransportSettings = Nothing) As RegistryManager

Parameters

hostName
String

IoT hub host name.

credential
AzureSasCredential

Credential that generates a SAS token to authenticate with IoT hub. See AzureSasCredential.

transportSettings
HttpTransportSettings

The HTTP transport settings.

Returns

RegistryManager

An instance of RegistryManager.

Applies to

Create(String, TokenCredential, HttpTransportSettings)

Creates an instance of RegistryManager.

public static Microsoft.Azure.Devices.RegistryManager Create (string hostName, Azure.Core.TokenCredential credential, Microsoft.Azure.Devices.HttpTransportSettings transportSettings = default);
static member Create : string * Azure.Core.TokenCredential * Microsoft.Azure.Devices.HttpTransportSettings -> Microsoft.Azure.Devices.RegistryManager
Public Shared Function Create (hostName As String, credential As TokenCredential, Optional transportSettings As HttpTransportSettings = Nothing) As RegistryManager

Parameters

hostName
String

IoT hub host name.

credential
TokenCredential

Azure Active Directory credentials to authenticate with IoT hub. See TokenCredential

transportSettings
HttpTransportSettings

The HTTP transport settings.

Returns

RegistryManager

An instance of RegistryManager.

Remarks

For more information on configuring IoT hub with Azure Active Directory, see https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-dev-guide-azure-ad-rbac

Applies to