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)

将类声明为 CommandSet,并为命令集指定名称和关联的 Service Broker 服务。 命令集可以提供带有 的 ProvideCommandAttribute命令。

CommandSetRegistrationAttribute(String, 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命令。

适用于