Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeBuilder::DefineMethod Method

 

Adds a method to the type.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodDefineMethod(String^, MethodAttributes)

Adds a new method to the type, with the specified name and method attributes.

System_CAPS_pubmethodDefineMethod(String^, MethodAttributes, CallingConventions)

Adds a new method to the type, with the specified name, method attributes, and calling convention.

System_CAPS_pubmethodDefineMethod(String^, MethodAttributes, CallingConventions, Type^, array<Type^>^)

Adds a new method to the type, with the specified name, method attributes, calling convention, and method signature.

System_CAPS_pubmethodDefineMethod(String^, MethodAttributes, CallingConventions, Type^, array<Type^>^, array<Type^>^, array<Type^>^, array<array<Type^>^>^, array<array<Type^>^>^)

Adds a new method to the type, with the specified name, method attributes, calling convention, method signature, and custom modifiers.

System_CAPS_pubmethodDefineMethod(String^, MethodAttributes, Type^, array<Type^>^)

Adds a new method to the type, with the specified name, method attributes, and method signature.

Return to top
Show:
© 2017 Microsoft