Installer.HelpText 속성

정의

설치 관리자 컬렉션에 있는 모든 설치 관리자에 대한 도움말 텍스트를 가져옵니다.

public:
 virtual property System::String ^ HelpText { System::String ^ get(); };
public virtual string HelpText { get; }
member this.HelpText : string
Public Overridable ReadOnly Property HelpText As String

속성 값

설치 관리자 컬렉션에 있는 모든 설치 관리자에 대한 도움말 텍스트입니다. 여기에는 설치 관리자가 수행하는 작업에 대한 설명, 이 설치 관리자에 전달할 수 있으며 이 설치 관리자가 이해할 수 있는 InstallUtil.exe 유틸리티와 같은 설치 실행 파일에 대한 명령줄 옵션이 포함됩니다.

예외

설치 관리자 컬렉션의 설치 관리자 중 하나가 도움말 텍스트대신 null 참조를 지정하는 경우. 도움말 텍스트를 포함하는 필드가 정의되어 있지만 초기화되지 않은 경우 이 예외가 발생할 수 있습니다.

예제

다음 예제는 HelpText 속성입니다. 이 속성은 클래스에서 Installer 정의되며, 호출될 때 에 전달되고 에서 이해할 Installer수 있는 Installutil.exe 유틸리티와 같은 설치 실행 파일에 대한 및 명령줄 옵션에 대한 설명을 Installer 반환합니다.

   // Override the property 'HelpText'.
property String^ HelpText 
{
   virtual String^ get() override
   {
      return "Installer Description : This is a sample Installer\n"
           + "HelpText is used to provide useful information about the "
           + "installer.";
   }
}
// Override the property 'HelpText'.
public override string HelpText
{
   get
   {
      return "Installer Description : This is a sample Installer\n"
           + "HelpText is used to provide useful information about the "
           + "installer.";
   }
}
' Override the property 'HelpText'.
Public Overrides ReadOnly Property HelpText() As String
   Get
      Return _
      "Installer Description : This is a sample Installer" + ControlChars.NewLine + _
      "HelpText is used to provide useful information about the installer."
   End Get
End Property

적용 대상

추가 정보