Compartir a través de


RemoteUserControl.IRemoteProxiedUserControl.SetCollectionEntryAsync Method

Definition

This method updates a property of an IList that is part of the DataContext of the control.

System.Threading.Tasks.Task<bool> IRemoteProxiedUserControl.SetCollectionEntryAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, int index, Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment value, Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectVersion? version, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl.SetCollectionEntryAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * int * Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment * Nullable<Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectVersion> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl.SetCollectionEntryAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * int * Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment * Nullable<Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectVersion> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Function SetCollectionEntryAsync (id As ObjectId, index As Integer, value As MessagePackFragment, version As Nullable(Of ObjectVersion), cancellationToken As CancellationToken) As Task(Of Boolean) Implements IRemoteProxiedUserControl.SetCollectionEntryAsync

Parameters

id
ObjectId

The unique identifier of the collection to update.

index
Int32

The index of the entry to update.

value
MessagePackFragment

The new value to assign.

version
Nullable<ObjectVersion>

Current version of the object.

cancellationToken
CancellationToken

Cancellation token for the async call.

Returns

false if it is not possible to find an object identified by id, true otherwise.

Implements

Applies to