BaseNumberConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 메서드

정의

지정된 개체를 다른 형식으로 변환합니다.Converts the specified object to another type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

매개 변수

context
ITypeDescriptorContext

형식 컨텍스트를 제공하는 ITypeDescriptorContext입니다.An ITypeDescriptorContext that provides a format context.

culture
CultureInfo

숫자를 나타내는 문화권이 지정된 CultureInfo입니다.A CultureInfo that specifies the culture to represent the number.

value
Object

변환할 개체입니다.The object to convert.

destinationType
Type

개체를 변환할 대상 유형입니다.The type to convert the object to.

반환

Object

변환된 값을 나타내는 Object입니다.An Object that represents the converted value.

예외

destinationType이(가) null인 경우destinationType is null.

변환할 수 없는 경우The conversion cannot be performed.

적용 대상