ProvideKeyBindingTableAttribute Class

Definition

Provides a key binding table GUID.

public ref class ProvideKeyBindingTableAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideKeyBindingTableAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideKeyBindingTableAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideKeyBindingTableAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideKeyBindingTableAttribute
Inherits RegistrationAttribute
Inheritance
ProvideKeyBindingTableAttribute
Attributes

Remarks

This attribute provides a key binding table GUID. By putting this attribute on your package you will declare that it has the given key binding table in its .vsct . This allows your package to offer its command set without being loaded. The package will be loaded if the user invokes any of the commands. For more information about the .vsct file, see VSCT XML Schema Reference.

Registry Entries

The following registry entries are created during registration of this attribute:

VSROOT\KeyBindingTables\{TableGuid}  
VSROOT\KeyBindingTables\{TableGuid}\@=#NameResourceID  
VSROOT\KeyBindingTables\{TableGuid}\Package={PackageGuid}  

Constructors

ProvideKeyBindingTableAttribute(String, Int16)

Initializes a new instance of ProvideKeyBindingTableAttribute for the specified table and name resource ID.

Properties

AllowNavKeyBinding

Set to true if the user can bind new commands of the nagivation keys

NameResourceID

Gets the name resource ID.

TableGuid

Gets the GUID of the key binding table.

TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Called to register this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the registration information about a VSPackage when called by an external registration tool such as regpkg.exe. For more information, see Registering VSPackages.

Applies to