Freigeben über


IotHubModuleClient.CreateFromEnvironmentAsync(IotHubClientOptions) Methode

Definition

Erstellt eine verwerfbare IotHubModuleClient instance in einer IoT Edge-Bereitstellung basierend auf Umgebungsvariablen.

public static System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.IotHubModuleClient> CreateFromEnvironmentAsync (Microsoft.Azure.Devices.Client.IotHubClientOptions options = default);
static member CreateFromEnvironmentAsync : Microsoft.Azure.Devices.Client.IotHubClientOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.IotHubModuleClient>
Public Shared Function CreateFromEnvironmentAsync (Optional options As IotHubClientOptions = Nothing) As Task(Of IotHubModuleClient)

Parameter

options
IotHubClientOptions

Die Optionen, die die Konfiguration des Modulclients instance während der Initialisierung ermöglichen.

Gibt zurück

Ein verwerfbarer Client instance.

Gilt für: