CrossContextDelegate 委托

定义

表示处理执行其他上下文中的某些代码的请求的方法。Represents the method that will handle the requests of execution of some code in another context.

此 API 支持产品基础结构,不能在代码中直接使用。

public delegate void CrossContextDelegate();
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void CrossContextDelegate();
type CrossContextDelegate = delegate of unit -> unit
Public Delegate Sub CrossContextDelegate()
继承
CrossContextDelegate
属性

注解

回调提供一项功能, 用于请求在另一个上下文中执行一些代码。Callbacks provide a facility to request execution of some code in another context. CrossContextDelegate是为上下文回调而定义的。The CrossContextDelegate class is defined for context callbacks. 每个上下文都有一个可用于在上下文上执行回调的回调对象。Each context has a callback object that can be used to perform callbacks on the context. 用于通过回调对象请求回调的委托必须属于CrossContextDelegate类。The delegate used to request a callback through the callback object must be of the CrossContextDelegate class.

扩展方法

GetMethodInfo(Delegate)

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

适用于