Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InvalidCastException Constructor

Initializes a new instance of the InvalidCastException class.

Name Description
InvalidCastException () Initializes a new instance of the InvalidCastException class.

Supported by the .NET Compact Framework.

InvalidCastException (String) Initializes a new instance of the InvalidCastException class with a specified error message.

Supported by the .NET Compact Framework.

InvalidCastException (SerializationInfo, StreamingContext) Initializes a new instance of the InvalidCastException class with serialized data.
InvalidCastException (String, Exception) Initializes a new instance of the InvalidCastException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

InvalidCastException (String, Int32) Initializes a new instance of the InvalidCastException class with a specified message and error code.

Community Additions

Show:
© 2014 Microsoft