System::ComponentModel::TypeConverter::ConvertTo メソッド

TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

オブジェクトを特定の型に変換します。

virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
パラメーター説明
contextconst System::SharedPtr<ITypeDescriptorContext>&Object 変換コンテキスト情報。
カルチャconst System::SharedPtr<System::Globalization::CultureInfo>&オブジェクトを変換する際に使用するカルチャ。
valueconst System::SharedPtr<System::Object>&Object を変換する。
destinationTypeconst System::TypeInfo&変換先の型。

ReturnValue

変換されたオブジェクト。

参照

TypeConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

オブジェクトを特定の型に変換します。

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
パラメーター説明
valueconst System::SharedPtr<System::Object>&Object を変換する。
destinationTypeconst System::TypeInfo&変換先の型。

ReturnValue

変換されたオブジェクト。

参照