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 Constructor (String)

Initializes an instance of InvalidCastException with a specified message.

[Visual Basic]
Overloads Public Sub New( _
   ByVal message As String _
)
[C#]
public InvalidCastException(
   string message
);
[C++]
public: InvalidCastException(
   String* message
);
[JScript]
public function InvalidCastException(
   message : String
);

Parameters

message
The message that indicates the reason the exception occurred.

Remarks

InvalidCastException inherits from the Exception class. This constructor sets the properties of the Exception object as follows:

Property Type Condition
InnerException null
Message The message string.

See Also

InvalidCastException Class | InvalidCastException Members | System Namespace | InvalidCastException Constructor Overload List