RegistryManager.UpdateTwins2Async Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기