Бөлісу құралы:


AssemblyInstaller.CommandLine Свойство

Определение

Возвращает или задает командную строку, используемую при создании нового InstallContext объекта для установки сборки.

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

Значение свойства

String[]

Массив типа String , который представляет командную строку, используемую при создании нового InstallContext объекта для установки сборки.

Примеры

В следующем примере CommandLine для свойства объекта AssemblyInstaller задано имя файла журнала.

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

Применяется к

См. также раздел