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 );
Exception Type | Condition |
---|---|
ArgumentNullException | if entryPoint is a null reference (in Visual Basic Nothing) |
NGWS Runtime Security:
ReflectionPermission | SecurityAction.Demand, ReflectionEmit |
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace | ModuleBuilder.SetEntryPoint Overload List