Bearbeiten

Freigeben über


GlobalScope.IExpando.AddMethod(String, Delegate) Method

Definition

Adds the specified method to the global scope. This method is not implemented in JScript.

This API supports the product infrastructure and is not intended to be used directly from your code.

 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

Parameters

name
String

The name of the method to add.

method
Delegate

The delegate to the method.

Returns

null in all cases.

Implements

Applies to

See also