System::Xml::Serialization::XmlSerializer::Deserialize 方法

XmlSerializer::Deserialize(System::SharedPtr<IO::Stream>) method

将 XML 文档反序列化为对象。

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializer::Deserialize(System::SharedPtr<IO::Stream> stream)
参数类型描述
System::SharedPtr<IO::Stream>用于读取文档的流。

ReturnValue

Object that was previously serialized into the document given.

另见

XmlSerializer::Deserialize(System::SharedPtr<IO::TextReader>) method

将 XML 文档反序列化为对象。

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializer::Deserialize(System::SharedPtr<IO::TextReader> textReader)
参数类型描述
textReaderSystem::SharedPtr<IO::TextReader>用于读取文档的读取器。

ReturnValue

Object that was previously serialized into the document given.

另见

XmlSerializer::Deserialize(System::SharedPtr<XmlReader>) method

将 XML 文档反序列化为对象。

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializer::Deserialize(System::SharedPtr<XmlReader> xmlReader)
参数类型描述
xmlReaderSystem::SharedPtr<XmlReader>用于读取文档的读取器。

ReturnValue

Object that was previously serialized into the document given.

另见

XmlSerializer::Deserialize(System::SharedPtr<XmlReader>, String) method

将 XML 文档反序列化为对象。

System::SharedPtr<Object> System::Xml::Serialization::XmlSerializer::Deserialize(System::SharedPtr<XmlReader> xmlReader, String encodingStyle)
参数类型描述
xmlReaderSystem::SharedPtr<XmlReader>用于读取文档的读取器。
encodingStyleString用于序列化对象的样式。

ReturnValue

Object that was previously serialized into the document given.

另见