Data type(s) of the type parameter(s) cannot be inferred from these arguments because more than one type is possible

Data type(s) of the type parameter(s) cannot be inferred from these arguments because more than one type is possible. Specifying the data type(s) explicitly might correct this error.

This error occurs when overload resolution has failed. It occurs as a subordinate message that indicates why a particular overload candidate has been eliminated. The error explains that if type inference is applied to determine the data type of the type parameters of the called generic procedure, the compiler finds more than one possible data type for at least one of them.

Note

When specifying arguments is not an option (for example, for query operators in query expressions), the error message appears without the second sentence.

For more information and examples, see Data type(s) of the type parameter(s) in method '<methodname>' cannot be inferred from these arguments because more than one type is possible.

Error ID: BC36653 and BC36650

See Also

Concepts

Generic Procedures in Visual Basic

Overload Resolution