GlobalScope.IExpando.AddMethod(String, Delegate) 方法

定义

将指定方法添加到全局范围。Adds the specified method to the global scope. 此方法未在 JScript 中实现。This method is not implemented in JScript.

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

 virtual System::Reflection::MethodInfo ^ System.Runtime.InteropServices.Expando.IExpando.AddMethod(System::String ^ name, Delegate ^ method) = System::Runtime::InteropServices::Expando::IExpando::AddMethod;
System.Reflection.MethodInfo IExpando.AddMethod (string name, Delegate method);
abstract member System.Runtime.InteropServices.Expando.IExpando.AddMethod : string * Delegate -> System.Reflection.MethodInfo
override this.System.Runtime.InteropServices.Expando.IExpando.AddMethod : string * Delegate -> System.Reflection.MethodInfo
Function AddMethod (name As String, method As Delegate) As MethodInfo Implements IExpando.AddMethod

参数

name
String

要添加的方法的名称。The name of the method to add.

method
Delegate

该方法的委托。The delegate to the method.

返回

MethodInfo

在所有情况下均为 null。null in all cases.

实现

适用于

另请参阅