HelpContextAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義了該類別的 HelpContextAttribute 屬性 HelpContextAttribute 。
public ref class HelpContextAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field, AllowMultiple=false)]
public sealed class HelpContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field, AllowMultiple=false)>]
type HelpContextAttribute = class
inherit Attribute
Public NotInheritable Class HelpContextAttribute
Inherits Attribute
- 繼承
-
HelpContextAttribute
- 屬性
備註
屬性讓程式設計師能將自訂資訊附加到各種程式實體,並在執行時環境中擷取屬性資訊。 在執行時,一個自訂屬性(例如 HelpContextAttribute)允許你使用此屬性來標示並顯示應用程式的情境相關說明。
該 繼HelpContextAttribute承自 Microsoft .NET 框架中的屬性類別。
建構函式
| 名稱 | Description |
|---|---|
| HelpContextAttribute(String, String, String) |
透過使用 F1 關鍵字、集合與篩選參數初始化該類別的新實例 HelpContextAttribute 。 |
| HelpContextAttribute(String) |
透過使用 F1 關鍵字參數初始化該類別的新 HelpContextAttribute 實例。 |
屬性
| 名稱 | Description |
|---|---|
| F1Keyword |
取得或設定包含關鍵字的字串,用於查詢 Help。 |
| HelpCollection |
取得或設定包含 Help 集合的字串,從中取回 Help 集合。 |
| HelpFilter |
取得或設定一個字串,包含幫助集合中用來縮小搜尋範圍的篩選條件。 |