Share via


IVsUserContext Members

Include Protected Members
Include Inherited Members

Manages attributes and keywords (context and subcontext) in the context or subcontext bag.

The IVsUserContext type exposes the following members.

Methods

 

Name

Description

Public method

AddAttribute

Adds an attribute, lookup keyword, or F1 keyword to the context or subcontext bag.

Public method

AddSubcontext

Links a subcontext bag to a parent context bag.

Public method

AdviseUpdate

Enables clients to receive notification when the Dynamic Help window is about to update based on the active context.

Public method

CountAttributes

Returns the number of attributes or keywords present in the context or subcontext bag.

Public method

CountSubcontexts

Returns the number of subcontext bags associated with the context bag.

Public method

GetAttribute

Returns the specified attribute or keyword from the context or subcontext bag based on index position or name.

Public method

GetAttributePri

Returns a specified attribute or keyword from the context or subcontext bag based on index position, name, or priority.

Public method

GetAttrUsage

Returns the type of context (attribute, lookup keyword, or F1 keyword) that is present at a specified index position in the context or subcontext bag.

Public method

GetPriority

Determines the priority of an attribute or keyword in the context or subcontext bag.

Public method

GetSubcontext

Returns a specified subcontext bag from the parent context bag.

Public method

IsDirty

Determines whether the user context has changed in the context or subcontext bag.

Public method

RemoveAllSubcontext

Removes all subcontext bags associated with the context bag.

Public method

RemoveAttribute

Removes an attribute or keyword from a context or subcontext bag.

Public method

RemoveAttributeIncludeChildren

Removes an attribute or keyword from the context bag and from any associated subcontext bags.

Public method

RemoveSubcontext

Removes the specified subcontext bag.

Public method

SetDirty

Flags the context or subcontext bag for update by the Dynamic Help window.

Public method

UnadviseUpdate

Disables clients from receiving notification of updates to the user context.

Public method

Update

Called internally by the Dynamic Help window to update user context.

Top

See Also

Reference

IVsUserContext Interface

Microsoft.VisualStudio.Shell.Interop Namespace