ProvideKeyBindingTableAttribute Class
Provides a key binding table GUID.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.ProvideKeyBindingTableAttribute
| Name | Description | |
|---|---|---|
![]() | ProvideKeyBindingTableAttribute(String, Int16) | Initializes a new instance of ProvideKeyBindingTableAttribute for the specified table and name resource ID. |
| Name | Description | |
|---|---|---|
![]() | AllowNavKeyBinding | Gets or sets whether the user is allowed to bind new commands to navigation 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.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | Register(RegistrationAttribute.RegistrationContext) | Called to register this attribute with the given context.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).) |
![]() | ToString() | (Inherited from Object.) |
![]() | 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.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
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.
The following registry entries are created during registration of this attribute:
VSROOT\KeyBindingTables\{TableGuid}
VSROOT\KeyBindingTables\{TableGuid}\@=#NameResourceID
VSROOT\KeyBindingTables\{TableGuid}\Package={PackageGuid}
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



