Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

InvalidCastException Constructor

Initializes a new instance of the InvalidCastException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by the XNA Framework Supported by Portable Class Library InvalidCastException() Initializes a new instance of the InvalidCastException class.
Public method Supported by the XNA Framework Supported by Portable Class Library InvalidCastException(String) Initializes a new instance of the InvalidCastException class with a specified error message.
Protected method InvalidCastException(SerializationInfo, StreamingContext) Initializes a new instance of the InvalidCastException class with serialized data.
Public method Supported by the XNA Framework Supported by Portable Class Library 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.
Public method Supported by Portable Class Library InvalidCastException(String, Int32) Initializes a new instance of the InvalidCastException class with a specified message and error code.
Top
Show:
© 2015 Microsoft