Sets the entry point of the module to the given method.
[Visual Basic] Overloads Public Sub SetEntryPoint( _ ByVal entryPoint As MethodInfo _ ) [C#] public void SetEntryPoint( MethodInfo entryPoint ); [C++] public: void SetEntryPoint( MethodInfo* entryPoint ); [JScript] public function SetEntryPoint( entryPoint : MethodInfo );
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