语言

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 继承自 Microsoft .NET 框架中的属性类。

构造函数

名称 说明
HelpContextAttribute(String, String, String)

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

HelpContextAttribute(String)

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

属性

名称 说明
F1Keyword

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

HelpCollection

获取或设置包含帮助集合的字符串,从中获取帮助。

HelpFilter

获取或设置一个字符串,包含帮助集合中用于缩小搜索范围的筛选条件。

适用于