Freigeben über


RemoteUserControl.IRemoteProxiedUserControl.SetObjectPropertyAsync Method

Definition

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

System.Threading.Tasks.Task<bool> IRemoteProxiedUserControl.SetObjectPropertyAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, string propertyName, Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment fragment, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl.SetObjectPropertyAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * string * Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl.SetObjectPropertyAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * string * Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Function SetObjectPropertyAsync (id As ObjectId, propertyName As String, fragment As MessagePackFragment, cancellationToken As CancellationToken) As Task(Of Boolean) Implements IRemoteProxiedUserControl.SetObjectPropertyAsync

Parameters

id
ObjectId

The unique identifier of the object to update.

propertyName
String

The name of the property to update.

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