共用方式為


NewItemTypesAttribute 建構函式 (Type)

初始化 NewItemTypesAttribute 類別的新執行個體。

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Sub New ( _
    type As Type _
)
public NewItemTypesAttribute(
    Type type
)
public:
NewItemTypesAttribute(
    Type^ type
)
new : 
        type:Type -> NewItemTypesAttribute
public function NewItemTypesAttribute(
    type : Type
)

參數

  • type
    型別:System.Type
    Type 物件,而這個屬性會將該物件宣告為有效的新項目型別。

例外狀況

例外狀況 條件
ArgumentNullException

type 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

NewItemTypesAttribute 類別

NewItemTypesAttribute 多載

Microsoft.Windows.Design.PropertyEditing 命名空間

NewItemFactory

其他資源

屬性編輯架構

WPF 設計工具擴充性