TypeConverter.GetConvertToException(Object, Type) 메서드

정의

변환을 수행할 수 없을 때 발생하는 예외를 반환합니다.

protected:
 Exception ^ GetConvertToException(System::Object ^ value, Type ^ destinationType);
protected Exception GetConvertToException (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

매개 변수

value
Object

변환할 Object이거나, 개체를 사용할 수 없는 경우 null입니다.

destinationType
Type

변환할 대상 형식을 나타내는 Type입니다.

반환

변환을 수행할 수 없을 때 throw되는 예외를 나타내는 Exception입니다.

예외

이 메서드에서 자동으로 throw되는 경우

적용 대상