Bagikan melalui


AssemblyInstaller.CommandLine Properti

Definisi

Mendapatkan atau mengatur baris perintah yang akan digunakan saat membuat objek baru InstallContext untuk penginstalan 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()

Nilai Properti

String[]

Array jenis String yang mewakili baris perintah yang akan digunakan saat membuat objek baru InstallContext untuk penginstalan assembly.

Contoh

Dalam contoh berikut, CommandLine properti dari sebuah AssemblyInstaller diatur ke nama logfile.

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

Berlaku untuk

Lihat juga