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 형식의 배열입니다.

예제

다음 예제에서 의 CommandLineAssemblyInstaller 속성은 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

적용 대상

추가 정보