语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

DeviceUpdateClientHostExtensions.AddDeviceUpdateClient Method

Definition

Overloads

AddDeviceUpdateClient(IHostApplicationBuilder, String)

Source:
DeviceUpdateClientHostExtensions.cs

Adds a singleton DeviceUpdateClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddDeviceUpdateClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName);
static member AddDeviceUpdateClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddDeviceUpdateClient (host As IHostApplicationBuilder, sectionName As String) As IClientBuilder

Parameters

sectionName
String

The section of IConfiguration to use.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to

AddDeviceUpdateClient(IHostApplicationBuilder, String, Action<DeviceUpdateClientSettings>)

Source:
DeviceUpdateClientHostExtensions.cs

Adds a singleton DeviceUpdateClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddDeviceUpdateClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName, Action<Azure.IoT.DeviceUpdate.DeviceUpdateClientSettings> configureSettings);
static member AddDeviceUpdateClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Action<Azure.IoT.DeviceUpdate.DeviceUpdateClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddDeviceUpdateClient (host As IHostApplicationBuilder, sectionName As String, configureSettings As Action(Of DeviceUpdateClientSettings)) As IClientBuilder

Parameters

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<DeviceUpdateClientSettings>

Factory method to modify the DeviceUpdateClientSettings after they are created.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to