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

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

culture
CultureInfo

数を表すカルチャを指定する CultureInfoA 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

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

例外

destinationTypenullです。destinationType is null.

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

適用対象