GeneratorAttribute 建構函式
初始化 GeneratorAttribute 類別的新執行個體。
命名空間: Microsoft.Data.Schema.Tools.DataGenerator
組件: Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)
語法
'宣告
Public Sub New ( _
designerType As Type _
)
public GeneratorAttribute(
Type designerType
)
public:
GeneratorAttribute(
Type^ designerType
)
new :
designerType:Type -> GeneratorAttribute
public function GeneratorAttribute(
designerType : Type
)
參數
- designerType
型別:System.Type
這個資料產生器之設計工具的 Type。designerType 必須實作 IGeneratorDesigner。
備註
您可以為自訂資料產生器建立自訂的設計工具,或是您可以使用 DefaultGeneratorDesigner。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。