TypeConverter.GetConvertToException Method (Object, Type)
.NET Framework (current version)
Returns an exception to throw when a conversion cannot be performed.
Assembly: System (in System.dll)
Parameters
- value
-
Type:
System.Object
The Object to convert, or null if the object is not available.
- destinationType
-
Type:
System.Type
A Type that represents the type the conversion was trying to convert to.
Return Value
Type: System.ExceptionAn Exception that represents the exception to throw when a conversion cannot be performed.
| Exception | Condition |
|---|---|
| NotSupportedException | Automatically thrown by this method. |
.NET Framework
Available since 1.1
Available since 1.1
Show: