Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetConvertFromException Method

TypeConverter.GetConvertFromException Method

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

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

Parameters

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

Return Value

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

Exceptions

Exception Type Condition
NotSupportedException Automatically thrown by this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace

Show:
© 2015 Microsoft