Type argument '<typeargumentname>' must have a public parameterless instance constructor to satisfy the 'New' constraint for type parameter '<typeparametername>'

A type argument supplies a type without an accessible parameterless constructor to a type parameter with the New (Visual Basic) constraint.

A constraint list imposes requirements on the type argument passed to the type parameter. One possible requirement is that the type argument must expose a parameterless constructor that the creating code can access. To specify this requirement, the constraint list includes the New constraint.

Error ID: BC32083

To correct this error

  1. Verify that the generic type name and the type name in the type argument are spelled correctly.

  2. Choose a type for the type argument that exposes an accessible parameterless constructor. You cannot invoke this particular generic type unless you can supply such a type argument to this type parameter.

See Also

Tasks

How to: Use a Generic Class

Concepts

Generic Types in Visual Basic

Reference

Type List