AppDomainManager.EntryAssembly AppDomainManager.EntryAssembly AppDomainManager.EntryAssembly AppDomainManager.EntryAssembly Property

定义

获取应用程序的入口程序集。Gets the entry assembly for an application.

public:
 virtual property System::Reflection::Assembly ^ EntryAssembly { System::Reflection::Assembly ^ get(); };
[get: System.Security.SecurityCritical]
public virtual System.Reflection.Assembly EntryAssembly { get; }
member this.EntryAssembly : System.Reflection.Assembly
Public Overridable ReadOnly Property EntryAssembly As Assembly

属性值

应用程序的入口程序集。The entry assembly for the application.

注解

如果应用程序是清单激活的应用程序, 则会从应用程序清单确定条目程序集。If the application is a manifest-activated application, the entry assembly is determined from the application manifest. 如果应用程序未激活清单, 则入口程序集是默认应用程序域中的进程可执行文件。If the application is not manifest activated, the entry assembly is the process executable in the default application domain. 在其他应用程序域中, 入口程序集是AppDomain.ExecuteAssembly方法执行的第一个可执行文件。In other application domains, the entry assembly is the first executable that was executed by the AppDomain.ExecuteAssembly method.

适用于