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