System::ComponentModel::TypeConverter::ConvertToString 方法

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

将对象转换为字符串。

System::String System::ComponentModel::TypeConverter::ConvertToString(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value)
参数类型描述
contextconst System::SharedPtr<ITypeDescriptorContext>&Object 转换上下文信息。
文化const System::SharedPtr<System::Globalization::CultureInfo>&在转换对象时使用的区域性。
valueconst System::SharedPtr<System::Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见

TypeConverter::ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&) method

将对象转换为字符串。

System::String System::ComponentModel::TypeConverter::ConvertToString(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Object> &value)
参数类型描述
contextconst System::SharedPtr<ITypeDescriptorContext>&Object 转换上下文信息。
valueconst System::SharedPtr<System::Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见

TypeConverter::ConvertToString(const System::SharedPtr<System::Object>&) method

将对象转换为字符串。

System::String System::ComponentModel::TypeConverter::ConvertToString(const System::SharedPtr<System::Object> &value)
参数类型描述
valueconst System::SharedPtr<System::Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见