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

定義

指定したコンテキストとカルチャ情報を使用して、指定した Transform を指定した型に変換します。Converts the specified Transform to the specified type by 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

変換コンテキスト。The conversion context.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

変換に適用するカルチャ情報。The culture information that applies to the conversion.

value
Object Object Object Object

変換対象の TransformThe Transform to convert.

destinationType
Type Type Type Type

value オブジェクトの変換先の型。The destination type that the value object is converted to.

戻り値

変換後の value を表すオブジェクト。An object that represents the converted value.

例外

valuenull であるか、または Transform ではありません。value is null or is not a Transform.

- または --or- destinationType が有効な変換先の型でありません。destinationType is not a valid destination type.

適用対象