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!

AssemblyBuilder.SetEntryPoint

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
);

Parameters

entryMethod
A reference to the method that represents the entry point for this dynamic assembly.

Return Value

None

Exceptions

Exception Type Condition
ArgumentNullException if entryMethod is null
InvalidOperationException if entryMethod is not contained within this assembly

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit=true

See Also

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