Installer.HelpText Właściwość

Definicja

Pobiera tekst pomocy dla wszystkich instalatorów w kolekcji instalatora.

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

Wartość właściwości

Tekst pomocy dla wszystkich instalatorów w kolekcji instalatora, w tym opis działania instalatora i opcje wiersza polecenia pliku wykonywalnego instalacji, takie jak narzędzie InstallUtil.exe, które można przekazać i zrozumieć przez ten instalator.

Wyjątki

Jeden z instalatorów w kolekcji instalatora określa odwołanie o wartości null zamiast tekstu pomocy. Prawdopodobną przyczyną tego wyjątku jest to, że pole zawierające tekst pomocy jest definiowane, ale nie zostało zainicjowane.

Przykłady

W poniższym przykładzie pokazano HelpText właściwość . Ta właściwość jest zdefiniowana w Installer klasie , która po wywołaniu zwraca opis Installer i opcje wiersza polecenia dla pliku wykonywalnego instalacji, takie jak narzędzie Installutil.exe, które można przekazać i zrozumieć przez Installerelement .

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

Dotyczy

Zobacz też