IExpando::AddMethod Method (String^, Delegate^)

 

Adds the named method to the Reflection object.

Namespace:   System.Runtime.InteropServices.Expando
Assembly:  mscorlib (in mscorlib.dll)

MethodInfo^ AddMethod(
	String^ name,
	Delegate^ method
)

Parameters

name
Type: System::String^

The name of the method.

method
Type: System::Delegate^

The delegate to the method.

Return Value

Type: System.Reflection::MethodInfo^

A MethodInfo object representing the added method.

Exception Condition
NotSupportedException

The IExpando object does not support this method.

.NET Framework
Available since 1.1
Return to top
Show: