NullableConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

Definition

지정한 컨텍스트와 culture 정보를 사용하여 지정된 값 개체를 지정된 유형으로 변환합니다.Converts the given value object to the specified type, using the specified context and culture information.

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

Parameters

context
ITypeDescriptorContext

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

culture
CultureInfo

현재 culture로 사용할 CultureInfo입니다.The CultureInfo to use as the current culture.

value
Object

변환할 Object입니다.The Object to convert.

destinationType
Type

값 매개 변수를 변환할 Type입니다.The Type to convert the value parameter to.

Returns

Object

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

Exceptions

destinationTypenull입니다.destinationType is null.

변환을 수행할 수 없습니다.The conversion cannot be performed.

Applies to