AssemblyInstaller.CommandLine Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the command line to use when creating a new InstallContext object for the assembly's installation.
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()
Property Value
String[]
An array of type String that represents the command line to use when creating a new InstallContext object for the assembly's installation.
Examples
In the following example, the CommandLine property of an AssemblyInstaller is set to the logfile name.
// 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
Applies to
See also
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.