NewItemTypesAttribute Constructor (array<Type )

Initializes a new instance of the NewItemTypesAttribute class.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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[]
)

Parameters

  • types
    Type: array<System.Type[]
    An array of Type objects that this attribute declares as being valid new item types.

Exceptions

Exception Condition
ArgumentNullException

types is nulla null reference (Nothing in Visual Basic) or empty.

.NET Framework Security

See Also

Reference

NewItemTypesAttribute Class

NewItemTypesAttribute Overload

Microsoft.Windows.Design.PropertyEditing Namespace

NewItemFactory

Other Resources

Property Editing Architecture

WPF Designer Extensibility