你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RegistryManager.ApplyConfigurationContentOnDeviceAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
允许取消操作的标记。
返回
注解
需要 ModulesContent。 DeviceContent 是可选项。 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
配置。
返回
注解
需要 ModulesContent。 DeviceContent 是可选项。 ModuleContent 不适用。