ProvideCodeGeneratorAttribute コンストラクター

コード ジェネレーターを提供するパッケージのパッケージ クラスにこの属性を適用します。

名前空間:  Microsoft.VisualStudio.TextTemplating.VSHost
アセンブリ:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 内)

構文

'宣言
Public Sub New ( _
    type As Type, _
    name As String, _
    description As String, _
    generatesDesignTimeSource As Boolean _
)
public ProvideCodeGeneratorAttribute(
    Type type,
    string name,
    string description,
    bool generatesDesignTimeSource
)
public:
ProvideCodeGeneratorAttribute(
    Type^ type, 
    String^ name, 
    String^ description, 
    bool generatesDesignTimeSource
)
new : 
        type:Type * 
        name:string * 
        description:string * 
        generatesDesignTimeSource:bool -> ProvideCodeGeneratorAttribute
public function ProvideCodeGeneratorAttribute(
    type : Type, 
    name : String, 
    description : String, 
    generatesDesignTimeSource : boolean
)

パラメーター

  • type
    型: System.Type
    コード ジェネレーター インターフェイス IVsSingleFileGenerator を実装する型
  • name
    型: System.String
    適用されるファイルのカスタム ツール プロパティで使用されるジェネレーターの名前。
  • description
    型: System.String
    ユーザーが判読できる、このジェネレーターの説明
  • generatesDesignTimeSource
    型: System.Boolean
    true の場合、このカスタム ツールによって生成されたファイルの種類はビジュアル デザイナーで使用できるようになります。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ProvideCodeGeneratorAttribute クラス

Microsoft.VisualStudio.TextTemplating.VSHost 名前空間