IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) Method

Definition

Adds the named method to the Reflection object.

public:
 System::Reflection::MethodInfo ^ AddMethod(System::String ^ name, Delegate ^ method);
public System.Reflection.MethodInfo AddMethod (string name, Delegate method);
abstract member AddMethod : string * Delegate -> System.Reflection.MethodInfo
Public Function AddMethod (name As String, method As Delegate) As MethodInfo

Parameters

name
String String String String

The name of the method.

method
Delegate Delegate Delegate Delegate

The delegate to the method.

Returns

A MethodInfo object representing the added method.

Exceptions

Applies to