Share via


ProvideCodeGeneratorAttribute クラス

定義

重要

この API は CLS 準拠ではありません。

コード ジェネレーターの登録を提供する属性クラス

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

注釈

ジェネレーターではなく、パッケージ クラス自体に適用する必要があります。

コンストラクター

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

コンストラクター

フィールド

AspNetProjectGuid

ASP.Net Project System パッケージの Guid

CSharpProjectGuid

C# プロジェクト システム パッケージの Guid

VisualBasicProjectGuid

Visual Basic Project System パッケージの Guid

プロパティ

Description

このジェネレーターの人間が判読できる説明

GeneratesDesignTimeSource

デザイン時のソース コードを提供するようにこのコード ジェネレーターにフラグを設定するかどうか

Name

このジェネレーターの名前

ProjectSystem

このコード ジェネレーターが登録されているプロジェクト システム

RegisterCodeBase

コードベースを使用してジェネレーターを登録するかどうか

Type

コード ジェネレーターを実装する型

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

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

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

このジェネレーターを登録する

Unregister(RegistrationAttribute+RegistrationContext)

指定したキーを削除する

適用対象