TypeConverter.GetConvertFromException(Object) Method

Definition

返回当转换无法执行时所引发的异常。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

Parameters

value
Object

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

Returns

Exception

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

Exceptions

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

Applies to