SynchronizationContext.Send(SendOrPostCallback, Object) 方法

定義

在衍生類別中覆寫時,會將同步訊息分派至同步處理內容。

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

參數

d
SendOrPostCallback

要呼叫的 SendOrPostCallback 委派。

state
Object

傳送至委派的物件。

例外狀況

已在 Windows 市集應用程式中呼叫該方法。 Windows 市集應用程式的 SynchronizationContext 實作不支援 Send(SendOrPostCallback, Object) 方法。

備註

方法 Send 會啟動同步要求以傳送訊息。

適用於