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

정의

변환을 수행할 수 없을 때 throw되는 예외를 반환합니다.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

매개 변수

value
Object Object Object Object

변환할 Object이거나, 개체를 사용할 수 없는 경우 null입니다.The Object to convert, or null if the object is not available.

destinationType
Type Type Type Type

변환할 대상 형식을 나타내는 Type입니다.A Type that represents the type the conversion was trying to convert to.

반환

변환을 수행할 수 없을 때 throw되는 예외를 나타내는 Exception입니다.An Exception that represents the exception to throw when a conversion cannot be performed.

예외

이 메서드에서 자동으로 throw되는 경우Automatically thrown by this method.

적용 대상