WindowsFormsSynchronizationContext.Post(SendOrPostCallback, Object) 方法

定义

为同步上下文调度异步消息。

C#
public override void Post (System.Threading.SendOrPostCallback d, object state);

参数

d
SendOrPostCallback

要调用的 SendOrPostCallback 委托。

state
Object

传递给委托的对象。

注解

该方法 Post 启动异步请求以发布消息。

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

另请参阅