'New' constraint cannot be specified multiple times for the same type parameter

A constraint list includes the New (Visual Basic) constraint more than once.

A constraint list on a type parameter can specify that the type argument passed to that type parameter must expose a parameterless constructor that the creating code can access. A type cannot have more than one parameterless constructor, and you cannot specify this requirement more than once.

Error ID: BC32081

To correct this error

  • Remove any redundant New keywords. You should have only one in the constraint list.

See Also

Concepts

Generic Types in Visual Basic