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

RegistryManager.ApplyConfigurationContentOnDeviceAsync 方法

定义

重载

ApplyConfigurationContentOnDeviceAsync(String, ConfigurationContent, CancellationToken)

将配置内容应用于 Edge 设备。

ApplyConfigurationContentOnDeviceAsync(String, ConfigurationContent)

将配置内容应用于 Edge 设备以创建部署。

ApplyConfigurationContentOnDeviceAsync(String, ConfigurationContent, CancellationToken)

将配置内容应用于 Edge 设备。

public virtual System.Threading.Tasks.Task ApplyConfigurationContentOnDeviceAsync (string deviceId, Microsoft.Azure.Devices.ConfigurationContent content, System.Threading.CancellationToken cancellationToken);
abstract member ApplyConfigurationContentOnDeviceAsync : string * Microsoft.Azure.Devices.ConfigurationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ApplyConfigurationContentOnDeviceAsync : string * Microsoft.Azure.Devices.ConfigurationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ApplyConfigurationContentOnDeviceAsync (deviceId As String, content As ConfigurationContent, cancellationToken As CancellationToken) As Task

参数

deviceId
String

设备 ID。

content
ConfigurationContent

配置。

cancellationToken
CancellationToken

允许取消操作的标记。

返回

注解

需要 ModulesContentDeviceContent 是可选项。 ModuleContent 不适用。

适用于

ApplyConfigurationContentOnDeviceAsync(String, ConfigurationContent)

将配置内容应用于 Edge 设备以创建部署。

public virtual System.Threading.Tasks.Task ApplyConfigurationContentOnDeviceAsync (string deviceId, Microsoft.Azure.Devices.ConfigurationContent content);
abstract member ApplyConfigurationContentOnDeviceAsync : string * Microsoft.Azure.Devices.ConfigurationContent -> System.Threading.Tasks.Task
override this.ApplyConfigurationContentOnDeviceAsync : string * Microsoft.Azure.Devices.ConfigurationContent -> System.Threading.Tasks.Task
Public Overridable Function ApplyConfigurationContentOnDeviceAsync (deviceId As String, content As ConfigurationContent) As Task

参数

deviceId
String

设备 ID。

content
ConfigurationContent

配置。

返回

注解

需要 ModulesContentDeviceContent 是可选项。 ModuleContent 不适用。

适用于