ProvideKeyBindingTableAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供键绑定表 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
- 继承
- 属性
注解
此属性提供密钥绑定表 GUID。 通过将此特性置于包上,你将声明它在 .vsct 中具有给定的键绑定表。 这样,包就可以在不加载的情况下提供其命令集。 如果用户调用任何命令,则将加载包。 有关 .vsct 文件的详细信息,请参阅 .VSCT XML 架构参考。
注册表项
此属性的注册过程中会创建以下注册表项:
VSROOT\KeyBindingTables\{TableGuid}
VSROOT\KeyBindingTables\{TableGuid}\@=#NameResourceID
VSROOT\KeyBindingTables\{TableGuid}\Package={PackageGuid}
构造函数
| ProvideKeyBindingTableAttribute(String, Int16) |
ProvideKeyBindingTableAttribute为指定的表和名称资源 ID 初始化的新实例。 |
属性
| AllowNavKeyBinding |
获取或设置是否允许用户将新命令绑定到导航键。 |
| NameResourceID |
获取名称资源 ID。 |
| TableGuid |
获取键绑定表的 GUID。 |
| TypeId |
获取此属性的当前实例。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
调用以便向给定的上下文注册此属性。 |
| Unregister(RegistrationAttribute+RegistrationContext) |
删除 regpkg.exe 的外部注册工具调用的有关 VSPackage 的注册信息。 有关详细信息,请参阅注册 Vspackage。 |