Sets the entry point for this dynamic assembly if the AssemblyBuilder is building an executable.
[Visual Basic] Public Sub SetEntryPoint( _ ByVal entryMethod As MethodInfo _ ) [C#] public void SetEntryPoint( MethodInfo entryMethod ); [C++] public: void SetEntryPoint( MethodInfo* entryMethod ); [JScript] public function SetEntryPoint( entryMethod : MethodInfo );
None
Exception Type | Condition |
---|---|
ArgumentNullException | if entryMethod is null |
InvalidOperationException | if entryMethod is not contained within this assembly |
NGWS Runtime Security:
ReflectionPermission | SecurityAction.Demand, ReflectionEmit=true |
AssemblyBuilder Class | AssemblyBuilder Members | System.Reflection.Emit Namespace