Share via


RegistryManager.UpdateTwins2Async Method

Definition

Overloads

UpdateTwins2Async(IEnumerable<Twin>, Boolean)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, Boolean, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, Boolean)

Update the mutable fields for a list of Twins previously created within the system

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> UpdateTwins2Async (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Shared.Twin> twins, bool forceUpdate);
abstract member UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * bool -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
override this.UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * bool -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
Public Overridable Function UpdateTwins2Async (twins As IEnumerable(Of Twin), forceUpdate As Boolean) As Task(Of BulkRegistryOperationResult)

Parameters

twins
IEnumerable<Twin>

List of Twins with updated fields.

forceUpdate
Boolean

Forces the Twin object to be updated even if it has changed since it was retrieved last time.

Returns

Result of the bulk update operation.

Applies to

UpdateTwins2Async(IEnumerable<Twin>, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> UpdateTwins2Async (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Shared.Twin> twins, System.Threading.CancellationToken cancellationToken);
abstract member UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
override this.UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
Public Overridable Function UpdateTwins2Async (twins As IEnumerable(Of Twin), cancellationToken As CancellationToken) As Task(Of BulkRegistryOperationResult)

Parameters

twins
IEnumerable<Twin>

List of Twins with updated fields.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Result of the bulk update operation.

Applies to

UpdateTwins2Async(IEnumerable<Twin>)

Update the mutable fields for a list of Twins previously created within the system

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> UpdateTwins2Async (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Shared.Twin> twins);
abstract member UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
override this.UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
Public Overridable Function UpdateTwins2Async (twins As IEnumerable(Of Twin)) As Task(Of BulkRegistryOperationResult)

Parameters

twins
IEnumerable<Twin>

List of Twins with updated fields.

Returns

Result of the bulk update operation.

Applies to

UpdateTwins2Async(IEnumerable<Twin>, Boolean, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult> UpdateTwins2Async (System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Shared.Twin> twins, bool forceUpdate, System.Threading.CancellationToken cancellationToken);
abstract member UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
override this.UpdateTwins2Async : seq<Microsoft.Azure.Devices.Shared.Twin> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.BulkRegistryOperationResult>
Public Overridable Function UpdateTwins2Async (twins As IEnumerable(Of Twin), forceUpdate As Boolean, cancellationToken As CancellationToken) As Task(Of BulkRegistryOperationResult)

Parameters

twins
IEnumerable<Twin>

List of Twins with updated fields.

forceUpdate
Boolean

Forces the Twin object to be updated even if it has changed since it was retrieved last time.

cancellationToken
CancellationToken

Task cancellation token.

Returns

Result of the bulk update operation.

Applies to