AppDomain.ExecuteAssembly メソッド (String, Evidence, String[])
アセンブリ: mscorlib (mscorlib.dll 内)

Public Function ExecuteAssembly ( _ assemblyFile As String, _ assemblySecurity As Evidence, _ args As String() _ ) As Integer
Dim instance As AppDomain Dim assemblyFile As String Dim assemblySecurity As Evidence Dim args As String() Dim returnValue As Integer returnValue = instance.ExecuteAssembly(assemblyFile, assemblySecurity, args)
public: virtual int ExecuteAssembly ( String^ assemblyFile, Evidence^ assemblySecurity, array<String^>^ args ) sealed
public final function ExecuteAssembly ( assemblyFile : String, assemblySecurity : Evidence, args : String[] ) : int
戻り値
アセンブリのエントリ ポイントが返す値。


アセンブリは、.NET Framework ヘッダーに指定されているエントリ ポイントで実行を開始します。
このメソッドでは、新しいプロセスやアプリケーション ドメインは作成しません。また、新しいスレッドでのエントリ ポイント メソッドも実行しません。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 複数のアプリケーション ドメインで使用するためにアセンブリをドメインに中立なコード領域に読み込むことはできません。

2 つの異なるドメインで ExecuteAssembly のオーバーロードの 1 つを使用する方法を次の例に示します。
Module Test Sub Main() Dim currentDomain As AppDomain = AppDomain.CurrentDomain Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain") currentDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on otherDomain" End Sub 'Main End Module 'Test
class Test { public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; AppDomain otherDomain = AppDomain.CreateDomain("otherDomain"); currentDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on otherDomain" } }
int main() { AppDomain^ currentDomain = AppDomain::CurrentDomain; AppDomain^ otherDomain = AppDomain::CreateDomain( "otherDomain" ); currentDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on [default]" otherDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on otherDomain" }

- SecurityPermission (証拠が指定されたアセンブリを読み込むために必要なアクセス許可)。SecurityPermissionFlag.ControlEvidence (関連する列挙体)
- FileIOPermission (ファイルまたはディレクトリから読み取るためのアクセス許可、またはパス自体の情報に対するアクセス許可)。FileIOPermissionAccess.Read、FileIOPermissionAccess.PathDiscovery (関連する列挙体)
- WebPermission ("file://" 以外で始まる URI を読み取るために必要なアクセス許可)。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AppDomain.ExecuteAssembly メソッド (String)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As AppDomain Dim assemblyFile As String Dim returnValue As Integer returnValue = instance.ExecuteAssembly(assemblyFile)
戻り値
アセンブリのエントリ ポイントが返す値。


アセンブリは、.NET Framework ヘッダーに指定されているエントリ ポイントで実行を開始します。
このメソッドでは、新しいプロセスやアプリケーション ドメインは作成しません。また、新しいスレッドでのエントリ ポイント メソッドも実行しません。
読み込んで実行する AppDomain を作成するには、CreateDomain メソッドを使用します。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 複数のアプリケーション ドメインで使用するためにアセンブリをドメインに中立なコード領域に読み込むことはできません。

2 つの異なるドメインで ExecuteAssembly のオーバーロードの 1 つを使用する方法を次の例に示します。
Module Test Sub Main() Dim currentDomain As AppDomain = AppDomain.CurrentDomain Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain") currentDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on otherDomain" End Sub 'Main End Module 'Test
class Test { public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; AppDomain otherDomain = AppDomain.CreateDomain("otherDomain"); currentDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on otherDomain" } }
int main() { AppDomain^ currentDomain = AppDomain::CurrentDomain; AppDomain^ otherDomain = AppDomain::CreateDomain( "otherDomain" ); currentDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on [default]" otherDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on otherDomain" }


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AppDomain.ExecuteAssembly メソッド

名前 | 説明 |
---|---|
AppDomain.ExecuteAssembly (String) | 指定したファイルに格納されているアセンブリを実行します。 .NET Compact Framework によってサポートされています。 |
AppDomain.ExecuteAssembly (String, Evidence) | 指定したファイルに格納されているアセンブリを、指定した証拠を使用して実行します。 |
AppDomain.ExecuteAssembly (String, Evidence, String[]) | 指定したファイルに格納されているアセンブリを、指定した証拠と引数を使用して実行します。 .NET Compact Framework によってサポートされています。 |
AppDomain.ExecuteAssembly (String, Evidence, String[], Byte[], AssemblyHashAlgorithm) | 指定したファイルに格納されているアセンブリを、指定した証拠と引数を使用して実行します。 |

AppDomain.ExecuteAssembly メソッド (String, Evidence)
アセンブリ: mscorlib (mscorlib.dll 内)

Public Function ExecuteAssembly ( _ assemblyFile As String, _ assemblySecurity As Evidence _ ) As Integer
Dim instance As AppDomain Dim assemblyFile As String Dim assemblySecurity As Evidence Dim returnValue As Integer returnValue = instance.ExecuteAssembly(assemblyFile, assemblySecurity)
戻り値
アセンブリのエントリ ポイントが返す値。


アセンブリは、.NET Framework ヘッダーに指定されているエントリ ポイントで実行を開始します。
ExecuteAssembly メソッドは、新しいプロセスの生成、新しいアプリケーション ドメインの作成、および新しいスレッドでのエントリ ポイント メソッドの実行は行いません。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 複数のアプリケーション ドメインで使用するためにアセンブリをドメインに中立なコード領域に読み込むことはできません。

2 つの異なるドメインで ExecuteAssembly のオーバーロードの 1 つを使用する方法を次の例に示します。
Module Test Sub Main() Dim currentDomain As AppDomain = AppDomain.CurrentDomain Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain") currentDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on otherDomain" End Sub 'Main End Module 'Test
class Test { public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; AppDomain otherDomain = AppDomain.CreateDomain("otherDomain"); currentDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on otherDomain" } }
int main() { AppDomain^ currentDomain = AppDomain::CurrentDomain; AppDomain^ otherDomain = AppDomain::CreateDomain( "otherDomain" ); currentDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on [default]" otherDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on otherDomain" }

- SecurityPermission (証拠が指定されたアセンブリを読み込むために必要なアクセス許可)。SecurityPermissionFlag.ControlEvidence (関連する列挙体)
- FileIOPermission (ファイルまたはディレクトリから読み取るためのアクセス許可、またはパス自体の情報に対するアクセス許可)。FileIOPermissionAccess.Read、FileIOPermissionAccess.PathDiscovery (関連する列挙体)
- WebPermission ("file://" 以外で始まる URI を読み取るために必要なアクセス許可)。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AppDomain.ExecuteAssembly メソッド (String, Evidence, String[], Byte[], AssemblyHashAlgorithm)
アセンブリ: mscorlib (mscorlib.dll 内)

Public Function ExecuteAssembly ( _ assemblyFile As String, _ assemblySecurity As Evidence, _ args As String(), _ hashValue As Byte(), _ hashAlgorithm As AssemblyHashAlgorithm _ ) As Integer
Dim instance As AppDomain Dim assemblyFile As String Dim assemblySecurity As Evidence Dim args As String() Dim hashValue As Byte() Dim hashAlgorithm As AssemblyHashAlgorithm Dim returnValue As Integer returnValue = instance.ExecuteAssembly(assemblyFile, assemblySecurity, args, hashValue, hashAlgorithm)
public int ExecuteAssembly ( string assemblyFile, Evidence assemblySecurity, string[] args, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm )
public: int ExecuteAssembly ( String^ assemblyFile, Evidence^ assemblySecurity, array<String^>^ args, array<unsigned char>^ hashValue, AssemblyHashAlgorithm hashAlgorithm )
public int ExecuteAssembly ( String assemblyFile, Evidence assemblySecurity, String[] args, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm )
public function ExecuteAssembly ( assemblyFile : String, assemblySecurity : Evidence, args : String[], hashValue : byte[], hashAlgorithm : AssemblyHashAlgorithm ) : int
- hashAlgorithm
アセンブリのエントリ ポイントが返す値。


アセンブリは、.NET Framework ヘッダーに指定されているエントリ ポイントで実行を開始します。
このメソッドでは、新しいプロセスやアプリケーション ドメインは作成しません。また、新しいスレッドでのエントリ ポイント メソッドも実行しません。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 複数のアプリケーション ドメインで使用するためにアセンブリをドメインに中立なコード領域に読み込むことはできません。

2 つの異なるドメインで ExecuteAssembly のオーバーロードの 1 つを使用する方法を次の例に示します。
Module Test Sub Main() Dim currentDomain As AppDomain = AppDomain.CurrentDomain Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain") currentDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe") ' Prints "MyExecutable running on otherDomain" End Sub 'Main End Module 'Test
class Test { public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; AppDomain otherDomain = AppDomain.CreateDomain("otherDomain"); currentDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on [default]" otherDomain.ExecuteAssembly("MyExecutable.exe"); // Prints "MyExecutable running on otherDomain" } }
int main() { AppDomain^ currentDomain = AppDomain::CurrentDomain; AppDomain^ otherDomain = AppDomain::CreateDomain( "otherDomain" ); currentDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on [default]" otherDomain->ExecuteAssembly( "MyExecutable.exe" ); // Prints S"MyExecutable running on otherDomain" }

- SecurityPermission (証拠が指定されたアセンブリを読み込むために必要なアクセス許可)。SecurityPermissionFlag.ControlEvidence (関連する列挙体)
- FileIOPermission (ファイルまたはディレクトリから読み取るためのアクセス許可、またはパス自体の情報に対するアクセス許可)。FileIOPermissionAccess.Read、FileIOPermissionAccess.PathDiscovery (関連する列挙体)
- WebPermission ("file://" 以外で始まる URI を読み取るために必要なアクセス許可)。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


_AppDomain.ExecuteAssembly メソッド

名前 | 説明 |
---|---|
_AppDomain.ExecuteAssembly (String) | COM オブジェクトに、AppDomain.ExecuteAssembly(String) メソッド オーバーロードへのバージョンに依存しないアクセスが用意されています。 |
_AppDomain.ExecuteAssembly (String, Evidence) | COM オブジェクトに、AppDomain.ExecuteAssembly(String,Evidence) メソッド オーバーロードへのバージョンに依存しないアクセスが用意されています。 |
_AppDomain.ExecuteAssembly (String, Evidence, String[]) | COM オブジェクトに、AppDomain.ExecuteAssembly(String,Evidence,String[]) メソッド オーバーロードへのバージョンに依存しないアクセスが用意されています。 |

Weblioに収録されているすべての辞書からAppDomain.ExecuteAssemblyを検索する場合は、下記のリンクをクリックしてください。

- AppDomain.ExecuteAssemblyのページへのリンク