Assembly.GetEntryAssembly Method
.NET Framework 1.1
Gets the process executable in the default application domain. In other application domains, this is the first executable that was executed by AppDomain.ExecuteAssembly.
[Visual Basic] Public Shared Function GetEntryAssembly() As Assembly [C#] public static Assembly GetEntryAssembly(); [C++] public: static Assembly* GetEntryAssembly(); [JScript] public static function GetEntryAssembly() : Assembly;
Return Value
The Assembly that is the process executable in the default application domain, or the first executable that was executed by AppDomain.ExecuteAssembly.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- ReflectionPermission when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess.
See Also
Assembly Class | Assembly Members | System.Reflection Namespace