Delen via


Constraints for this type parameter do not match the constraints on the corresponding type parameter defined on one of the other partial types of '|1'

When you divide the definition of a class or structure among several declarations, the compiler treats the class or structure as the union of all its partial declarations. Because of this, you cannot define any conflicting modifiers or type parameter lists in the various partial declarations.

Error ID: BC30932

To correct this error

  1. Determine which type parameter list is the desired one for your class or structure. This includes the parameters, their order, and their constraint lists.

  2. Make sure every partial definition uses the identical type parameter list.

See Also

Concepts

Generic Types in Visual Basic

Reference

Partial (Visual Basic)