Installer.HelpText Właściwość
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
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.
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.
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
Produkt | Wersje |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: