Udostępnij za pośrednictwem


Type '<type name>' does not have a constructor with parameters of types '<parameter type names>'

While Visual Studio was parsing the code, it could not find a constructor that had matching parameters.

This may be the result of supplying a constructor with types other than those that are required. For example, a Point constructor might take two integers. If you provided floats, this error is raised.

To correct this error

  • Use a different constructor or explicitly cast the parameter types such that they match those provided by the constructor.

See Also

Reference

Constructors (C# Programming Guide)

Other Resources

Type Conversions in Visual Basic