SingleFileGeneratorSupportRegistrationAttribute クラス

定義

この属性は、特定のファイルの種類のカスタム ファイル ジェネレーター レジストリ エントリを追加します。 例: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Generators
[proj_fac_guid]

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

注釈

ProjectTypeGuid キーが作成されていることを確認するのは、プロジェクトの責任です。 その後、実際の単一ファイル ジェネレーターを実装する特定のファイルの種類のクライアントは、プロジェクトの "ジェネレーター" キーのサブキーの下に単一のファイル ジェネレーターを登録する必要があります。 特定の単一ファイル ジェネレーターを実装するクライアントは、この目的のために を CodeGeneratorRegistrationAttribute 使用します。

コンストラクター

SingleFileGeneratorSupportRegistrationAttribute(Type)

新しい SingleFileGeneratorSupportRegistrationAttribute 属性を作成して、指定されたコンテキストのカスタム コード ジェネレーターを登録します。

プロパティ

ProjectFactoryGuid

ジェネレーターの種類を表す Guid を取得します

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

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

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

指定されたコンテキストでこの属性を登録します。 コンテキストには、登録情報の配置先の場所が含まれます。 また、登録されている型やパス情報などの他の情報も含まれています。

Unregister(RegistrationAttribute+RegistrationContext)

このファイル拡張子の登録を解除します。

適用対象