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!

ModuleBuilder.DefineGlobalMethod

Defines a global method.

Overload List

Defines a global method given its name, attributes, calling convention, return type, and parameter types.

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

Defines a global method given its name, attributes, return type, and parameter types.

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

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

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