RegistryManager.SetServicePropertiesAsync Method
Namespace: Microsoft.Azure.Devices
Assembly: Microsoft.Azure.Devices (in Microsoft.Azure.Devices.dll)
Overload List
| Name | Description | |
|---|---|---|
![]() |
SetServicePropertiesAsync(String, ServiceProperties) | Replaces all the ServiceProperties of a Device |
![]() |
SetServicePropertiesAsync(String, ServiceProperties, CancellationToken) | Replaces all the ServiceProperties of a Device |
See Also
RegistryManager Class
Microsoft.Azure.Devices Namespace
Return to top
RegistryManager.SetServicePropertiesAsync Method (String, ServiceProperties)
Replaces all the ServiceProperties of a Device
Syntax
public abstract Task<ServiceProperties> SetServicePropertiesAsync(
string deviceId,
ServiceProperties serviceProperties
)
public:
virtual Task<ServiceProperties^>^ SetServicePropertiesAsync(
String^ deviceId,
ServiceProperties^ serviceProperties
) abstract
Parameters
deviceId
Type: System.StringDevice Id
serviceProperties
Type: Microsoft.Azure.Devices.ServicePropertiesUpdatable Service Properties
Return Value
Type: System.Threading.Tasks.Task<ServiceProperties>
echoes back the updated ServiceProperties object
Return to top
RegistryManager.SetServicePropertiesAsync Method (String, ServiceProperties, CancellationToken)
Replaces all the ServiceProperties of a Device
Syntax
public abstract Task<ServiceProperties> SetServicePropertiesAsync(
string deviceId,
ServiceProperties serviceProperties,
CancellationToken cancellationToken
)
public:
virtual Task<ServiceProperties^>^ SetServicePropertiesAsync(
String^ deviceId,
ServiceProperties^ serviceProperties,
CancellationToken cancellationToken
) abstract
Parameters
deviceId
Type: System.StringDevice Id
serviceProperties
Type: Microsoft.Azure.Devices.ServicePropertiesUpdatable Service Properties
cancellationToken
Type: System.Threading.CancellationTokenThe token which allows the the operation to be cancelled.
Return Value
Type: System.Threading.Tasks.Task<ServiceProperties>
echoes back the updated ServiceProperties object
Return to top
.jpeg)