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!

TypeConverter.GetConvertToException

Retrieves a suitable exception to throw when a conversion cannot be performed.

[Visual Basic]
Protected Function GetConvertToException( _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Exception
[C#]
protected Exception GetConvertToException(
   object value,
   Type destinationType
);
[C++]
protected: Exception* GetConvertToException(
   Object* value,
   Type* destinationType
);
[JScript]
protected function GetConvertToException(
   value : Object,
   destinationType : Type
) : Exception;

Parameters

value
The value of the object to be converted, or null if the object isn't available.
destinationType
A Type that represents the type the conversion was trying to convert to.

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace