IRemoteProxiedUserControl.GetObjectAsync(ObjectId, CancellationToken) Yöntem

Tanım

Bu yöntem, denetimin DataContext öğesinin parçası olan benzersiz olarak tanımlanabilir bir nesnenin değerini sorgulamaya olanak tanır. nesnesinin değeri kullanılarak ObjectValueNotificationAsync(MessagePackFragment, CancellationToken)istemciye gönderilir.

public System.Threading.Tasks.Task<bool> GetObjectAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId id, System.Threading.CancellationToken cancellationToken);
abstract member GetObjectAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.ObjectId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function GetObjectAsync (id As ObjectId, cancellationToken As CancellationToken) As Task(Of Boolean)

Parametreler

id
ObjectId

Döndürülecek nesnenin benzersiz tanımlayıcısı.

cancellationToken
CancellationToken

Zaman uyumsuz çağrı için iptal belirteci.

Döndürülenler

Nesnenin bulunup bulunmadığı. Sonuç ise truenesnesi IRemoteProxiedUserControl için bir değer sağlamayı çağırır ObjectValueNotificationAsync(MessagePackFragment, CancellationToken) .

Şunlara uygulanır