ProvideKeyBindingTableAttribute Class

 

Provides a key binding table GUID.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.ProvideKeyBindingTableAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, 
	Inherited = true)]
public sealed class ProvideKeyBindingTableAttribute : RegistrationAttribute

NameDescription
System_CAPS_pubmethodProvideKeyBindingTableAttribute(String, Int16)

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

NameDescription
System_CAPS_pubpropertyAllowNavKeyBinding

Gets or sets whether the user is allowed to bind new commands to navigation keys.

System_CAPS_pubpropertyNameResourceID

Gets the name resource ID.

System_CAPS_pubpropertyTableGuid

Gets the GUID of the key binding table.

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodRegister(RegistrationAttribute.RegistrationContext)

Called to register this attribute with the given context.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(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).)

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.

Return to top
Show: