次の方法で共有


CommandSetRegistrationAttribute クラス

定義

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを 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 として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

CommandSetRegistrationAttribute(String, String, String, String)

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

プロパティ

Name

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

ServiceName

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

ServiceVersion

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

SupportedScope

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

TypeId

RegistrationAttribute 派生クラスが System.ComponentModel.TypeDescriptor.GetAttributes(...) と連携できるように、TypeID プロパティをオーバーライドします。このプロパティから派生した属性は、クラスに適用できるインスタンスをより適切に制御する必要がある場合にのみ、このプロパティをオーバーライドする必要があります。

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

VSPackage のレジストリ パス (アプリケーションのレジストリ ルートに対する相対パス) を取得します。

(継承元 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

Unregister(RegistrationAttribute+RegistrationContext)

クラスを CommandSet として宣言し、コマンド セットの名前と関連付けられているサービス ブローカー サービスを指定します。 コマンド セットでは、 を使用してコマンドを ProvideCommandAttribute提供できます。

適用対象