RuntimeHelpers.PrepareDelegate(Delegate) 方法

定义

指示应准备指定委托以包含在受约束的执行区域 (CER) 中。Indicates that the specified delegate should be prepared for inclusion in a constrained execution region (CER).

public:
 static void PrepareDelegate(Delegate ^ d);
public static void PrepareDelegate (Delegate d);
[System.Security.SecurityCritical]
public static void PrepareDelegate (Delegate d);
static member PrepareDelegate : Delegate -> unit
[<System.Security.SecurityCritical>]
static member PrepareDelegate : Delegate -> unit
Public Shared Sub PrepareDelegate (d As Delegate)

参数

d
Delegate

要准备的委托类型。The delegate type to prepare.

属性

注解

编译器使用此方法来准备委托的调用方法,并准备该调用的目标 (,并将该委托的静态可确认调用关系图) 为受约束的执行区域 (CER) 。Compilers use this method to prepare a delegate's invocation method and to prepare the target of that invocation (and the delegate's statically determinable call graph) as a constrained execution region (CER).

适用于