Share via


ProvideGeneratorAttribute クラス

定義

派生クラスまたは を実装するクラスに追加されたときに、Visual Basic および Visual C# プロジェクト用に Package指定されたコード ジェネレーターを登録します IVsPackage

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

コンストラクター

ProvideGeneratorAttribute(Type, String, String, String, Boolean)

指定されたパッケージとジェネレーターの の ProvideGeneratorAttribute 新しいインスタンスを初期化します。

プロパティ

Description

ジェネレーターの説明を取得します。

GenerateDesignTimeSource

デザイン時に使用するためにソース コードが生成されるかどうかを取得します。

GeneratorType

コード ジェネレーターの型を取得します。

Name

ジェネレーターの名前を取得します。

PackageGuid

このジェネレーターの呼び出しをサポートするプロジェクトを含むパッケージの GUID を取得します。

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

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

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

この属性を指定されたコンテキストに登録します。

Unregister(RegistrationAttribute+RegistrationContext)

regpkg.exe などの外部登録ツールによって呼び出されたときに VSPackage に関する登録情報を削除します。 詳細については、「VSPackage の登録」を参照してください。

適用対象