共用方式為


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 命名空間