TypeConverter.GetConvertToException(Object, Type) Methode

Definition

Gibt eine Ausnahme zurück, die ausgelöst wird, wenn eine Konvertierung nicht ausgeführt werden kann.

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

Parameter

value
Object

Der Object zu konvertierende Wert oder null wenn das Objekt nicht verfügbar ist.

destinationType
Type

A Type that represents the type the conversion was trying to convert to.

Gibt zurück

Ein Exception Wert, der die Ausnahme darstellt, die ausgelöst wird, wenn eine Konvertierung nicht ausgeführt werden kann.

Ausnahmen

Wird von dieser Methode automatisch ausgelöst.

Gilt für: