Marshal.PrelinkAll(Type) 方法
定义
对类上的所有方法执行预链接检查。Performs a pre-link check for all methods on a class.
public:
static void PrelinkAll(Type ^ c);
public static void PrelinkAll (Type c);
[System.Security.SecurityCritical]
public static void PrelinkAll (Type c);
static member PrelinkAll : Type -> unit
[<System.Security.SecurityCritical>]
static member PrelinkAll : Type -> unit
Public Shared Sub PrelinkAll (c As Type)
参数
- c
- Type
要检查其方法的类。The class whose methods are to be checked.
- 属性
例外
c 参数为 null。The c parameter is null.
注解
PrelinkAll方法对 Marshal.Prelink 给定类型的每个方法调用。The PrelinkAll method invokes Marshal.Prelink on every method for a given type. Prelink 在不调用每个方法的情况下执行一次性方法设置任务。Prelink executes one-time method setup tasks without calling each method. PrelinkAll仅可用于平台调用。You can use PrelinkAll only for platform invoke calls.