TypeConverter.GetConvertToException(Object, Type) Metodo
Definizione
Restituisce un'eccezione da generare quando non è possibile eseguire una conversione.Returns an exception to throw when a conversion cannot be performed.
protected:
Exception ^ GetConvertToException(System::Object ^ value, Type ^ destinationType);
protected Exception GetConvertToException (object value, Type destinationType);
member this.GetConvertToException : obj * Type -> Exception
Protected Function GetConvertToException (value As Object, destinationType As Type) As Exception
Parametri
- value
- Object
Oggetto Object da convertire oppure null
se l'oggetto non è disponibile.The Object to convert, or null
if the object is not available.
- destinationType
- Type
Oggetto Type che rappresenta il tipo nel quale si cerca di eseguire la conversione.A Type that represents the type the conversion was trying to convert to.
Restituisce
Oggetto Exception che rappresenta l'eccezione da generare quando non è possibile eseguire una conversione.An Exception that represents the exception to throw when a conversion cannot be performed.
Eccezioni
Generata automaticamente da questo metodo.Automatically thrown by this method.