TypeConverter.GetConvertFromException(Object) TypeConverter.GetConvertFromException(Object) TypeConverter.GetConvertFromException(Object) TypeConverter.GetConvertFromException(Object) Method

定义

返回无法执行转换时引发的异常。Returns an exception to throw when a conversion cannot be performed.

protected:
 Exception ^ GetConvertFromException(System::Object ^ value);
protected Exception GetConvertFromException (object value);
member this.GetConvertFromException : obj -> Exception
Protected Function GetConvertFromException (value As Object) As Exception

参数

value
Object Object Object Object

要转换的 Object,或者,如果该对象不可用,则为 nullThe Object to convert, or null if the object is not available.

返回

一个 Exception,表示当无法执行转换时引发的异常。An Exception that represents the exception to throw when a conversion cannot be performed.

异常

由此方法自动引发。Automatically thrown by this method.

适用于