TypeConverter.GetConvertFromException 方法

返回无法执行转换时引发的异常。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Protected Function GetConvertFromException ( _
    value As Object _
) As Exception
用法
Dim value As Object
Dim returnValue As Exception

returnValue = Me.GetConvertFromException(value)
protected Exception GetConvertFromException (
    Object value
)
protected:
Exception^ GetConvertFromException (
    Object^ value
)
protected Exception GetConvertFromException (
    Object value
)
protected function GetConvertFromException (
    value : Object
) : Exception

参数

  • value
    要转换的 Object,或者如果该对象不可用,则为 空引用(在 Visual Basic 中为 Nothing)。

返回值

一个 Exception,表示当无法执行转换时引发的异常。

异常

异常类型 条件

NotSupportedException

由此方法自动引发。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

TypeConverter 类
TypeConverter 成员
System.ComponentModel 命名空间