WindowsFormsSynchronizationContext.Post(SendOrPostCallback, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將非同步訊息發送到同步上下文。
public:
override void Post(System::Threading::SendOrPostCallback ^ d, System::Object ^ state);
public override void Post(System.Threading.SendOrPostCallback d, object state);
public override void Post(System.Threading.SendOrPostCallback d, object? state);
override this.Post : System.Threading.SendOrPostCallback * obj -> unit
Public Overrides Sub Post (d As SendOrPostCallback, state As Object)
參數
SendOrPostCallback要打電話給代表。
- state
- Object
該物件交由代表完成。
備註
此方法會 Post 啟動一個非同步的請求來發佈訊息。
適用於
另請參閱
- SynchronizationContext
- 事件為基礎的非同步模式概述