Share via


IAsyncContext<T>.TryGet(T) 方法

定義

嘗試取得目前的異步內容。

public:
 bool TryGet([Runtime::InteropServices::Out] T % context);
public bool TryGet (out T? context);
abstract member TryGet : 'T -> bool
Public Function TryGet (ByRef context As T) As Boolean

參數

context
T

接收內容。

傳回

true 如果內容已初始化,則為 ;否則為 false

適用於