Share via


DesignSurfaceExtensionAttribute クラス

定義

VSPackage が、デザイナーの読み込み時に の実装によって提供 Type されるサービスをカスタマイズまたは拡張するサービスを DesignSurface 実装することを Visual Studio 環境に通知します。

public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class DesignSurfaceExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type DesignSurfaceExtensionAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class DesignSurfaceExtensionAttribute
Inherits RegistrationAttribute
継承
DesignSurfaceExtensionAttribute
属性

コンストラクター

DesignSurfaceExtensionAttribute(Type)

VSPackage の の実装DesignSurfaceExtensionDesignSurfaceExtensionAttribute提供するとして、指定されたオブジェクトを指定する クラスの新しいインスタンスを作成します。

プロパティ

ExtensionType

Typeの実装を使用して VSPackage を提供し、デザイン サーフェイスをカスタマイズするために登録された オブジェクトの DesignSurfaceExtension

LoadAtIdle

VSPackage によって使用されるデザイナーの読み込みに対して、 によって登録された の実装によって提供されるDesignSurfaceExtensionAttribute拡張機能がインストールされるタイミングをDesignSurfaceExtensionAttribute制御します。

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

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

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

デザイン サーフェイス拡張機能を登録します。

Unregister(RegistrationAttribute+RegistrationContext)

デザイン サーフェイス拡張機能レジストリ キーを削除します。

適用対象