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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。