Share via


IRemoteProxiedUserControl.SetCollectionEntryAsync Method

Definition

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

public System.Threading.Tasks.Task<bool> 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 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>
Public Function SetCollectionEntryAsync (id As ObjectId, index As Integer, value As MessagePackFragment, version As Nullable(Of ObjectVersion), cancellationToken As CancellationToken) As Task(Of Boolean)

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.

Applies to