InvalidObjectTypeException
Represents exceptions that occur when specifying an unexpected object type.
public InvalidObjectTypeException()
Initializes a new instance of the InvalidObjectTypeException class.
Initializes a new instance of the InvalidObjectTypeException class with an error message that describes the exception.
Initializes a new instance of the InvalidObjectTypeException class with a message that describes the exception and a reference to the inner exception that caused the exception.
Initializes a new instance of the InvalidObjectTypeException class with serialized data.