Επεξεργασία

Κοινή χρήση μέσω


AssemblyInstaller.CommandLine Property

Definition

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