TypeConverter.GetConvertToException(Object, Type) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar ett undantag som ska utlösas när en konvertering inte kan utföras.
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
Parametrar
Returer
En Exception som representerar undantaget som ska utlösas när en konvertering inte kan utföras.
Undantag
Genereras automatiskt av den här metoden.