Wrong number of type arguments passed to method '<genericprocedurename>'

A generic procedure is called with a number of type arguments that does not match the number of type parameters with which it is defined.

Error ID: BC30951

To correct this error

  • Supply a type argument for every type parameter defined for the generic procedure.

    -or-

  • Call the generic procedure with no type arguments at all, and let the compiler attempt to infer the type arguments.

See Also

Concepts

Generic Types in Visual Basic

Generic Procedures in Visual Basic

Reference

AddressOf Operator

Type List