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 启动一个异步请求来发布消息。

适用于