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.DefinePInvokeMethod

Defines a PInvoke method.

Overload List

Defines a PInvoke method given its name, the name of the DLL in which the method is defined, the attributes of the method, the calling convention of the method, the return type of the method, the types of the parameters of the method, and the PInvoke flags.

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

Defines a PInvoke method given its name, the name of the DLL in which the method is defined, the attributes of the method, the calling convention of the method, the return type of the method, the types of the parameters of the method, and the PInvoke flags.

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

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

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