← Interactive API Explorer
Namespace: System

InvalidCastException

The exception that is thrown for invalid casting or explicit conversion.

Methods (1)

InvalidCastException(String)Constructor
Initializes a new instance of the InvalidCastException class with a specified error message.
ParameterDescription
messageThe message that describes the error.