HelpContextAttribute Class

Definition

Defines a HelpContextAttribute attribute for the HelpContextAttribute class.

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
Inheritance
HelpContextAttribute
Attributes

Remarks

Attributes enable programmers to attach custom information to various program entities and retrieve attribute information in a run-time environment. In the runtime, a custom attribute, such as HelpContextAttribute, allows you to use this property to signal and display context-sensitive Help for an application.

The HelpContextAttribute inherits from the attribute class in the Microsoft .NET Framework.

Constructors

HelpContextAttribute(String)

Initializes a new instance of the HelpContextAttribute class by using an F1 keyword parameter.

HelpContextAttribute(String, String, String)

Initializes a new instance of the HelpContextAttribute class by using the F1 keyword, collection, and filter parameters.

Properties

F1Keyword

Gets or sets a String containing the keyword to be used in looking up Help.

HelpCollection

Gets or sets a String containing the Help collection from which to retrieve the Help.

HelpFilter

Gets or sets a String containing any filters that are in place to narrow down the search in the Help collection.

Applies to