Udostępnij za pośrednictwem


RegistryManager.UpdateModuleAsync Method

Definition

Overloads

UpdateModuleAsync(Module)

Update the mutable fields of the module registration

UpdateModuleAsync(Module, Boolean)

Update the mutable fields of the module registration

UpdateModuleAsync(Module, CancellationToken)

Update the mutable fields of the module registration

UpdateModuleAsync(Module, Boolean, CancellationToken)

Update the mutable fields of the module registration

UpdateModuleAsync(Module)

Update the mutable fields of the module registration

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module> UpdateModuleAsync (Microsoft.Azure.Devices.Module module);
abstract member UpdateModuleAsync : Microsoft.Azure.Devices.Module -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
override this.UpdateModuleAsync : Microsoft.Azure.Devices.Module -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
Public Overridable Function UpdateModuleAsync (module As Module) As Task(Of Module)

Parameters

module
Module

The Module object with updated fields.

Returns

The Module object with updated ETags.

Applies to

UpdateModuleAsync(Module, Boolean)

Update the mutable fields of the module registration

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module> UpdateModuleAsync (Microsoft.Azure.Devices.Module module, bool forceUpdate);
abstract member UpdateModuleAsync : Microsoft.Azure.Devices.Module * bool -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
override this.UpdateModuleAsync : Microsoft.Azure.Devices.Module * bool -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
Public Overridable Function UpdateModuleAsync (module As Module, forceUpdate As Boolean) As Task(Of Module)

Parameters

module
Module

The Module object with updated fields.

forceUpdate
Boolean

Forces the device object to be replaced without regard for an ETag match.

Returns

The Module object with updated ETags.

Applies to

UpdateModuleAsync(Module, CancellationToken)

Update the mutable fields of the module registration

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module> UpdateModuleAsync (Microsoft.Azure.Devices.Module module, System.Threading.CancellationToken cancellationToken);
abstract member UpdateModuleAsync : Microsoft.Azure.Devices.Module * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
override this.UpdateModuleAsync : Microsoft.Azure.Devices.Module * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
Public Overridable Function UpdateModuleAsync (module As Module, cancellationToken As CancellationToken) As Task(Of Module)

Parameters

module
Module

The Module object with updated fields.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

The Module object with updated ETags.

Applies to

UpdateModuleAsync(Module, Boolean, CancellationToken)

Update the mutable fields of the module registration

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module> UpdateModuleAsync (Microsoft.Azure.Devices.Module module, bool forceUpdate, System.Threading.CancellationToken cancellationToken);
abstract member UpdateModuleAsync : Microsoft.Azure.Devices.Module * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
override this.UpdateModuleAsync : Microsoft.Azure.Devices.Module * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Module>
Public Overridable Function UpdateModuleAsync (module As Module, forceUpdate As Boolean, cancellationToken As CancellationToken) As Task(Of Module)

Parameters

module
Module

The Module object with updated fields.

forceUpdate
Boolean

Forces the module object to be replaced even if it was updated since it was retrieved last time.

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

The Module object with updated ETags.

Applies to