AssemblyInstaller.CommandLine Propiedad

Definición

Obtiene o establece la línea de comandos que se va a utilizar al crear un nuevo objeto InstallContext para la instalación del ensamblado.

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 propiedad

String[]

Matriz de tipo String que representa la línea de comandos que se va a utilizar al crear un nuevo objeto InstallContext para la instalación del ensamblado.

Ejemplos

En el ejemplo siguiente, la CommandLine propiedad de se AssemblyInstaller establece en el nombre del archivo de registro.

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

Se aplica a

Consulte también