System::ComponentModel::TypeConverter::ConvertFromInvariantString 方法

TypeConverter::ConvertFromInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&) method

将不变字符串转换为对象。

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

ReturnValue

已转换的对象。

另见

TypeConverter::ConvertFromInvariantString(const System::String&) method

将不变字符串转换为对象。

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertFromInvariantString(const System::String &text)
参数类型描述
文本const System::String&要转换的值。

ReturnValue

已转换的对象。

另见