初始化 CreationToolAttribute 類別的新執行個體。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub New ( _
toolType As Type _
)
public CreationToolAttribute(
Type toolType
)
public:
CreationToolAttribute(
Type^ toolType
)
new :
toolType:Type -> CreationToolAttribute
public function CreationToolAttribute(
toolType : Type
)
參數
- toolType
型別:System.Type
這個屬性所描述之工具的型別。您可以指定 nullNull 參照 (即 Visual Basic 中的 Nothing),避免公開 CreationTool 基底類別 (Base Class)。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentException | toolType 不是從 CreationTool 衍生。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間