TypeConverter.GetConvertToException(Object, Type) TypeConverter.GetConvertToException(Object, Type) TypeConverter.GetConvertToException(Object, Type) TypeConverter.GetConvertToException(Object, Type) Method

Definición

Devuelve una excepción que se va a producir cuando no puede realizarse una conversión.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

Parámetros

value
Object Object Object Object

Object que se va a convertir, o null si no está disponible el objeto.The Object to convert, or null if the object is not available.

destinationType
Type Type Type Type

Type que representa el tipo al que se intenta convertir.A Type that represents the type the conversion was trying to convert to.

Devoluciones

Exception que representa la excepción que se va a producir cuando no se puede realizar una conversión.An Exception that represents the exception to throw when a conversion cannot be performed.

Excepciones

Este método la produce automáticamente.Automatically thrown by this method.

Se aplica a