語言

CommandSetRegistrationAttribute 類別

定義

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

public ref class CommandSetRegistrationAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public sealed class CommandSetRegistrationAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type CommandSetRegistrationAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class CommandSetRegistrationAttribute
Inherits RegistrationAttribute
繼承
CommandSetRegistrationAttribute

建構函式

CommandSetRegistrationAttribute(String, String, String, String)

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

CommandSetRegistrationAttribute(String, String, String)

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

屬性

Name

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

ServiceName

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

ServiceVersion

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

SupportedScope

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

TypeId

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

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

Unregister(RegistrationAttribute+RegistrationContext)

將類別宣告為 CommandSet,並指定命令集的名稱和相關聯的 Service Broker 服務。 命令集可以使用 提供命令 ProvideCommandAttribute。

適用於