ファイル名を指定して Assembly を実行します。.NET Framework ヘッダーに指定されているメソッドが呼び出されます。
Function ExecuteAssembly( _
ByVal assemblyFile As String _) As Integer
[C#]
int ExecuteAssembly(
stringassemblyFile);
[C++]
int ExecuteAssembly(
String* assemblyFile);
[JScript]
function ExecuteAssembly(
assemblyFile : String) : int;
パラメータ
- assemblyFile
実行するアセンブリのファイル名。
戻り値
アセンブリのエントリ ポイントが返す値。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | assemblyFile が null 参照 (Visual Basic では Nothing) です。 |
FileNotFoundException | assemblyFile が見つかりません。 |
BadImageFormatException | assemblyFile が有効なアセンブリではありません。 |
解説
このメソッドは、新しいプロセスの生成、新しいアプリケーション ドメインの作成、エントリ ポイントのメソッドを実行する新しいスレッドの作成は行いません。読み込んで実行する AppDomain を作成するには、 CreateDomain メソッドを使用します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
_AppDomain インターフェイス | _AppDomain メンバ | System 名前空間 | _AppDomain.ExecuteAssembly オーバーロードの一覧