共用方式為


NewItemTypesAttribute 建構函式 (array<Type )

初始化 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 安全性

請參閱

參考

NewItemTypesAttribute 類別

NewItemTypesAttribute 多載

Microsoft.Windows.Design.PropertyEditing 命名空間

NewItemFactory

其他資源

屬性編輯架構

WPF 設計工具擴充性