アセンブリのインストール用に新しい InstallContext オブジェクトを作成するときに使用するコマンド ラインを取得または設定します。
Public Property CommandLine As String ()
[C#]
public string[] CommandLine {get; set;}
[C++]
public: __property String* get_CommandLine();public: __property void set_CommandLine(String* __gc[]);
[JScript]
public function get CommandLine() : String[];
public function set CommandLine(String[]);
プロパティ値
アセンブリのインストール用に新しい InstallContext オブジェクトを作成するときに使用するコマンド ラインを表す String 型の配列。
使用例
[Visual Basic, C#, C++] AssemblyInstaller の CommandLine プロパティをログ ファイル名に設定する例を次に示します。
' Set the logfile name in the commandline argument array.
Dim commandLineOptions(0) As String
commandLineOptions(0) = "/LogFile=example.log"
myAssemblyInstaller.CommandLine = commandLineOptions
[C#]
// Set the logfile name in the commandline argument array.
string[] commandLineOptions = new string[ 1 ] {"/LogFile=example.log"};
myAssemblyInstaller.CommandLine = commandLineOptions;
[C++]
// Set the logfile name in the commandline argument array.
String* commandLineOptions[] = {S"/LogFile=example.log"};
myAssemblyInstaller->CommandLine = commandLineOptions;
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- 直前の呼び出し元の完全信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細の参照先 : 部分信頼コードからのライブラリの使用
参照
AssemblyInstaller クラス | AssemblyInstaller メンバ | System.Configuration.Install 名前空間 | InstallContext