共用方式為


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);
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 會啟動非同步要求來張貼訊息。

適用於