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;
The Assembly that is the process executable in the default application domain, or the first executable that was executed by AppDomain.ExecuteAssembly.
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.