Export (0) Print
Expand All

TypeConverter.GetConvertFromException Method

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

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

'Declaration
Protected Function GetConvertFromException ( _
	value As Object _
) As Exception

Parameters

value
Type: System.Object

The Object to convert, or Nothing 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