Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeConverter.GetConvertFromException Method

Returns an exception to throw when a conversion cannot be performed.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

member GetConvertFromException : 
        value:Object -> Exception

Parameters

value
Type: System.Object

The Object to convert, or a null reference (Nothing in Visual Basic) if the object is not available.

Return Value

Type: System.Exception
An Exception that represents the exception to throw when a conversion cannot be performed.

ExceptionCondition
NotSupportedException

Automatically thrown by this method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft