AsyncAutoResetEvent 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AsyncAutoResetEvent() |
初始化一個不包含內聯等待者的類別新實例 AsyncAutoResetEvent 。 |
| AsyncAutoResetEvent(Boolean) |
初始化 AsyncAutoResetEvent 類別的新執行個體。 |
AsyncAutoResetEvent()
初始化一個不包含內聯等待者的類別新實例 AsyncAutoResetEvent 。
public:
AsyncAutoResetEvent();
public:
AsyncAutoResetEvent();
AsyncAutoResetEvent();
public AsyncAutoResetEvent();
Public Sub New ()
適用於
AsyncAutoResetEvent(Boolean)
初始化 AsyncAutoResetEvent 類別的新執行個體。
public:
AsyncAutoResetEvent(bool allowInliningAwaiters);
public:
AsyncAutoResetEvent(bool allowInliningAwaiters);
AsyncAutoResetEvent(bool allowInliningAwaiters);
public AsyncAutoResetEvent(bool allowInliningAwaiters);
new Microsoft.VisualStudio.Threading.AsyncAutoResetEvent : bool -> Microsoft.VisualStudio.Threading.AsyncAutoResetEvent
Public Sub New (allowInliningAwaiters As Boolean)
參數
- allowInliningAwaiters
- Boolean
一個表示在方法 Set() 中是否同步完成任務的值,而非非同步完成。
false 更佳模擬類別的 AutoResetEvent 行為,但 true 可能帶來稍微更好的效能。
備註
將參數設 allowInliningWaiters 為 false 模擬類別的 AutoResetEvent 行為,但設定為 則 true 能帶來稍微更好的效能。