TypeArgumentException Constructor
Definition
TypeArgumentException()
Initializes a new instance of the TypeArgumentException class.
public TypeArgumentException()
TypeArgumentException(string)
Initializes a new instance of the TypeArgumentException class.
public TypeArgumentException(string typeParamName)
Parameters
typeParamNamestringThe name of the type parameter that caused the exception.
TypeArgumentException(string, string)
Initializes a new instance of the TypeArgumentException class.
public TypeArgumentException(string typeParamName, string message)
Parameters
typeParamNamestringThe name of the type parameter that caused the exception.
messagestringThe message that describes the error.
TypeArgumentException(string, Exception)
Initializes a new instance of the TypeArgumentException class.
public TypeArgumentException(string message, Exception innerException)