ProvideKeyBindingTableAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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 |
Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class. (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. |