語言

ProvideKeyBindingTableAttribute 類別

定義

提供索引鍵系結數據表 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
繼承
ProvideKeyBindingTableAttribute
屬性

備註

此屬性提供索引鍵系結數據表 GUID。 藉由將這個屬性放在您的套件上,您將宣告它在其 .vsct 中具有指定的索引鍵系結數據表。 這可讓您的套件提供其命令集,而不需要載入。 如果使用者叫用任何命令,將會載入套件。 如需 .vsct 檔案的詳細資訊,請參閱 VSCT XML 架構參考。

登錄項目

下列登入專案會在註冊此屬性期間建立:

VSROOT\KeyBindingTables\{TableGuid}  
VSROOT\KeyBindingTables\{TableGuid}\@=#NameResourceID  
VSROOT\KeyBindingTables\{TableGuid}\Package={PackageGuid}  

建構函式

ProvideKeyBindingTableAttribute(String, Int16)

針對指定的數據表和名稱資源標識碼,初始化 的新實例 ProvideKeyBindingTableAttribute 。

屬性

AllowNavKeyBinding

如果使用者可以系結瀏覽索引鍵的新命令,請將 設定為 true

NameResourceID

取得名稱資源識別碼。

TableGuid

取得索引鍵系結數據表的 GUID。

TypeId

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別使用 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性必須覆寫此屬性,只有在實例上需要更好的控件,才能套用至類別。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

取得相對於 VSPackage 應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

呼叫以註冊這個具有指定內容的屬性。

Unregister(RegistrationAttribute+RegistrationContext)

拿掉外部註冊工具呼叫 VSPackage 的註冊資訊,例如 regpkg.exe。 如需詳細資訊,請參閱註冊 VSPackages。

適用於