ProvideKeyBindingTableAttribute Class
Provides a key binding table GUID. By putting this attribute on your Package-derived class or class that implements IVsPackage you will declare that it has the given key binding (KEYBINDINGS_SECTION – KEYBINDINGS_END) table in its Command Table Configuration (.Ctc) Files.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
‘선언
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideKeyBindingTableAttribute _
Inherits RegistrationAttribute
‘사용 방법
Dim instance As ProvideKeyBindingTableAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideKeyBindingTableAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideKeyBindingTableAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type ProvideKeyBindingTableAttribute =
class
inherit RegistrationAttribute
end
public final class ProvideKeyBindingTableAttribute extends RegistrationAttribute
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 Command Table Configuration (.ctc) File. 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.
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}
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.ProvideKeyBindingTableAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.