Partager via


AssemblyInstaller.CommandLine Propriété

Définition

Obtient ou définit la ligne de commande à utiliser lors de la création d’un InstallContext objet pour l’installation de l’assembly.

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

Valeur de propriété

String[]

Tableau de type String qui représente la ligne de commande à utiliser lors de la création d’un InstallContext objet pour l’installation de l’assembly.

Exemples

Dans l’exemple suivant, la CommandLine propriété d’un AssemblyInstaller fichier journal est définie sur le nom du fichier journal.

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

S’applique à

Voir aussi