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

定義

指定したコンテキストとカルチャ情報を使用して、指定した値オブジェクトを、指定した型に変換します。Converts a 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

パラメーター

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

書式指定コンテキストを提供する ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

CultureInfoA CultureInfo. null を渡すと、現在のカルチャが使用されます。If null is passed, the current culture is assumed.

value
Object Object Object Object

変換対象の ObjectThe Object to convert.

destinationType
Type Type Type Type

value パラメーターの変換後の TypeThe Type to convert the value parameter to.

戻り値

変換後の値を表す ObjectAn Object that represents the converted value.

例外

destinationType パラメーターが null です。The destinationType parameter is null.

変換を実行できません。The conversion cannot be performed.

適用対象