Sdílet prostřednictvím


AssemblyInstaller.CommandLine Vlastnost

Definice

Získá nebo nastaví příkazový řádek použít při vytváření nového InstallContext objektu pro instalaci sestavení.

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()

Hodnota vlastnosti

String[]

Pole typu String , které představuje příkazový řádek, který se má použít při vytváření nového InstallContext objektu pro instalaci sestavení.

Příklady

V následujícím příkladu CommandLine je vlastnost nastavena AssemblyInstaller na název souboru protokolu.

// 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

Platí pro

Viz také