HelpContextAttribute 类

定义

定义 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从 .NET Framework 中的特性类继承 Microsoft 。

构造函数

HelpContextAttribute(String)

通过使用 F1 关键字参数初始化 HelpContextAttribute 类的新实例。

HelpContextAttribute(String, String, String)

通过使用 F1 关键字、集合和筛选器参数初始化 HelpContextAttribute 类的新实例。

属性

F1Keyword

获取或设置一个字符串,该字符串包含用于查找帮助的关键字。

HelpCollection

获取或设置一个字符串,该字符串包含从中检索帮助的帮助集。

HelpFilter

获取或设置一个字符串,该字符串包含的所有筛选器都是在帮助集合中缩小搜索范围的任何筛选器。

适用于