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.

適用於