SendOrPostCallback 委托

定义

表示在消息即将被调度到同步上下文时要调用的方法。Represents a method to be called when a message is to be dispatched to a synchronization context.

public delegate void SendOrPostCallback(System::Object ^ state);
public delegate void SendOrPostCallback(object state);
type SendOrPostCallback = delegate of obj -> unit
Public Delegate Sub SendOrPostCallback(state As Object)

参数

state
Object

传递给委托的对象。The object passed to the delegate.

继承
SendOrPostCallback

注解

SendOrPostCallback 表示在将消息调度到同步上下文时要执行的回调方法。SendOrPostCallback represents a callback method that you want to execute when a message is to be dispatched to a synchronization context. 通过向 SendOrPostCallback 构造函数传递回调方法来创建委托。Create the delegate by passing your callback method to the SendOrPostCallback constructor. 你的方法必须具有此处显示的签名。Your method must have the signature shown here.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于