初始化 NewItemTypesAttribute 類別的新執行個體。
命名空間: Microsoft.Windows.Design.PropertyEditing
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub New ( _
ParamArray types As Type() _
)
public NewItemTypesAttribute(
params Type[] types
)
public:
NewItemTypesAttribute(
... array<Type^>^ types
)
new :
types:Type[] -> NewItemTypesAttribute
public function NewItemTypesAttribute(
... types : Type[]
)
參數
- types
型別:array<System.Type[]
Type 物件陣列,而這個屬性會將這些物件宣告為有效的新項目型別。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentNullException | types 為 nullNull 參照 (即 Visual Basic 中的 Nothing) 或是空的。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.PropertyEditing 命名空間