AssemblyInstaller.CommandLine Eigenschaft

Definition

Ruft die Befehlszeile ab, die beim Erstellen eines neuen InstallContext-Objekts für die Installation der Assembly verwendet werden soll, oder legt diese fest.

public:
 property cli::array <System::String ^> ^ CommandLine { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] CommandLine { get; set; }
member this.CommandLine : string[] with get, set
Public Property CommandLine As String()

Eigenschaftswert

String[]

Ein Array vom Typ String, das die Befehlszeile darstellt, die beim Erstellen eines neuen InstallContext-Objekts für die Installation der Assembly verwendet werden soll.

Beispiele

Im folgenden Beispiel wird die CommandLine -Eigenschaft von AssemblyInstaller auf den Namen der Protokolldatei festgelegt.

// Set the logfile name in the commandline argument array.
array<String^>^commandLineOptions = {"/LogFile=example.log"};
myAssemblyInstaller->CommandLine = commandLineOptions;
// Set the logfile name in the commandline argument array.
string[] commandLineOptions = new string[ 1 ] {"/LogFile=example.log"};
myAssemblyInstaller.CommandLine = commandLineOptions;
' Set the logfile name in the commandline argument array.
Dim commandLineOptions(0) As String
commandLineOptions(0) = "/LogFile=example.log"
myAssemblyInstaller.CommandLine = commandLineOptions

Gilt für:

Weitere Informationen