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.SetEntryPoint (MethodInfo, PEFileKinds)

Sets the entry point of the module to the given method given the type of the PE file.

[Visual Basic]
Overloads Public Sub SetEntryPoint( _
   ByVal entryPoint As MethodInfo, _
   ByVal fileKind As PEFileKinds _
)
[C#]
public void SetEntryPoint(
   MethodInfo entryPoint,
   PEFileKinds fileKind
);
[C++]
public: void SetEntryPoint(
   MethodInfo* entryPoint,
   PEFileKinds fileKind
);
[JScript]
public function SetEntryPoint(
   entryPoint : MethodInfo,
   fileKind : PEFileKinds
);

Parameters

entryPoint
The method that is the entry point to the module.
fileKind
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentNullException if entryPoint is a null reference (in Visual Basic Nothing)

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace | ModuleBuilder.SetEntryPoint Overload List