Assembly.GetEntryAssembly メソッド
既定のアプリケーション ドメインで実行できるプロセスを取得します。他のアプリケーション ドメインでは、 AppDomain.ExecuteAssembly で実行された最初の実行可能ファイルです。
Public Shared Function GetEntryAssembly() As Assembly
[C#]
public static Assembly GetEntryAssembly();
[C++]
public: static Assembly* GetEntryAssembly();
[JScript]
public static function GetEntryAssembly() : Assembly;
戻り値
既定のアプリケーション ドメインで実行できるプロセスのアセンブリ。または、 AppDomain.ExecuteAssembly で実行された最初の実行可能ファイル。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- ReflectionPermission (Type.InvokeMember などの機構を通じて遅延バインディングで呼び出すときに必要なアクセス許可) ReflectionPermissionFlag.MemberAccess (関連する列挙体)