NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

InvalidCastException Class

Represents an exception that is thrown when an invalid cast occurs.

Object
   Exception
      SystemException
         InvalidCastException

[Visual Basic]
Public Class InvalidCastException
   Inherits SystemException
[C#]
public class InvalidCastException : SystemException
[C++]
public __gc class InvalidCastException : public SystemException
[JScript]
public class InvalidCastException extends SystemException

Remarks

The InvalidCastException is the exception class that is thrown when a bad cast occurs.

Requirements

Namespace: System

Assembly: mscorlib.dll

See Also

InvalidCastException Members | System Namespace