Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Assembly.GetEntryAssembly Method

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: 

See Also

Assembly Class | Assembly Members | System.Reflection Namespace

Show:
© 2015 Microsoft