IRemoteProxiedUserControl.GetObjectAsync(ObjectId, CancellationToken) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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 true
nesnesi IRemoteProxiedUserControl için bir değer sağlamayı çağırır ObjectValueNotificationAsync(MessagePackFragment, CancellationToken) .