SynchronizationContext.Post(SendOrPostCallback, Object) 方法

定義

當在派生類別中覆寫時,會將非同步訊息發送到同步上下文。

public:
 virtual void Post(System::Threading::SendOrPostCallback ^ d, System::Object ^ state);
public virtual void Post(System.Threading.SendOrPostCallback d, object state);
abstract member Post : System.Threading.SendOrPostCallback * obj -> unit
override this.Post : System.Threading.SendOrPostCallback * obj -> unit
Public Overridable Sub Post (d As SendOrPostCallback, state As Object)

參數

d
SendOrPostCallback

SendOrPostCallback要打電話給代表。

state
Object

該物件交由代表完成。

備註

此方法會 Post 啟動一個非同步的請求來發佈訊息。

適用於