SynchronizationContext.Post(SendOrPostCallback, Object) 方法
定义
在派生类中重写时,将异步消息分派到同步上下文。When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
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)
参数
要调用的 SendOrPostCallback 委托。The SendOrPostCallback delegate to call.
- state
- Object
传递给委托的对象。The object passed to the delegate.
注解
Post方法启动异步请求以发布消息。The Post method starts an asynchronous request to post a message.