NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeBuilder.DefineMethod

Defines a method.

Overload List

Adds a new method to the class, with the given name and method signature.

[Visual Basic] Overloads Public Function DefineMethod(String, MethodAttributes, Type, Type()) As MethodBuilder
[C#] public MethodBuilder DefineMethod(String, MethodAttributes, Type, Type[]);
[C++] public: MethodBuilder* DefineMethod(String*, MethodAttributes, Type, Type[]);
[JScript] public function DefineMethod(String, MethodAttributes, Type, Type[]) : MethodBuilder;

Adds a new method to the class, with the given name and method signature.

[Visual Basic] Overloads Public Function DefineMethod(String, MethodAttributes, CallingConventions, Type, Type()) As MethodBuilder
[C#] public MethodBuilder DefineMethod(String, MethodAttributes, CallingConventions, Type, Type[]);
[C++] public: MethodBuilder* DefineMethod(String*, MethodAttributes, CallingConventions, Type, Type[]);
[JScript] public function DefineMethod(String, MethodAttributes, CallingConventions, Type, Type[]) : MethodBuilder;

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace