NewItemTypesAttribute Constructor (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 ( _
type As Type _
)
public NewItemTypesAttribute(
Type type
)
public:
NewItemTypesAttribute(
Type^ type
)
new :
type:Type -> NewItemTypesAttribute
public function NewItemTypesAttribute(
type : Type
)
Parameters
- type
Type: System.Type
A Type object that this attribute declares as being a valid new item type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
NewItemTypesAttribute Overload
Microsoft.Windows.Design.PropertyEditing Namespace