AssemblyInstaller.CommandLine Propriedade

Definição

Obtém ou define a linha de comandos para usar ao criar um novo InstallContext objeto para a instalação da montagem.

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

Valor de Propriedade

String[]

Um array de tipo String que representa a linha de comandos a usar ao criar um novo InstallContext objeto para a instalação da montagem.

Exemplos

No exemplo seguinte, a CommandLine propriedade de an AssemblyInstaller é definida como o nome do ficheiro de log.

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

Aplica-se a

Ver também