XmlSerializationReader.ReadSerializable 方法

定义

根据 XmlReader 当前位置的对象的 XML 表示形式填充该对象。Populates an object from its XML representation at the current location of the XmlReader.

重载

ReadSerializable(IXmlSerializable)

此 API 支持产品基础结构,不能在代码中直接使用。

根据 XmlReader 当前位置的对象的 XML 表示形式填充该对象。Populates an object from its XML representation at the current location of the XmlReader.

ReadSerializable(IXmlSerializable, Boolean)

此 API 支持产品基础结构,不能在代码中直接使用。

此方法支持 .NET Framework 基础结构,但不适合直接在代码中使用。This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

ReadSerializable(IXmlSerializable)

根据 XmlReader 当前位置的对象的 XML 表示形式填充该对象。Populates an object from its XML representation at the current location of the XmlReader.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 System::Xml::Serialization::IXmlSerializable ^ ReadSerializable(System::Xml::Serialization::IXmlSerializable ^ serializable);
protected System.Xml.Serialization.IXmlSerializable ReadSerializable (System.Xml.Serialization.IXmlSerializable serializable);
member this.ReadSerializable : System.Xml.Serialization.IXmlSerializable -> System.Xml.Serialization.IXmlSerializable
Protected Function ReadSerializable (serializable As IXmlSerializable) As IXmlSerializable

参数

serializable
IXmlSerializable

对应于 IXmlSerializable 当前位置的 XmlReaderAn IXmlSerializable that corresponds to the current position of the XmlReader.

返回

IXmlSerializable

实现 IXmlSerializable 接口的对象,其成员从 XmlReader 的位置填充。An object that implements the IXmlSerializable interface with its members populated from the location of the XmlReader.

注解

的受保护成员 XmlSerializationReader 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

适用于

ReadSerializable(IXmlSerializable, Boolean)

此方法支持 .NET Framework 基础结构,但不适合直接在代码中使用。This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 System::Xml::Serialization::IXmlSerializable ^ ReadSerializable(System::Xml::Serialization::IXmlSerializable ^ serializable, bool wrappedAny);
protected System.Xml.Serialization.IXmlSerializable ReadSerializable (System.Xml.Serialization.IXmlSerializable serializable, bool wrappedAny);
member this.ReadSerializable : System.Xml.Serialization.IXmlSerializable * bool -> System.Xml.Serialization.IXmlSerializable
Protected Function ReadSerializable (serializable As IXmlSerializable, wrappedAny As Boolean) As IXmlSerializable

参数

serializable
IXmlSerializable

对应于 XMLReader 当前位置的 IXmlSerializable 对象。An IXmlSerializable object that corresponds to the current position of the XMLReader.

wrappedAny
Boolean

指明该可序列化的对象是否为包装的。Specifies whether the serializable object is wrapped.

返回

IXmlSerializable

实现 IXmlSerializable 接口的对象,其成员从 XmlReader 的位置填充。An object that implements the IXmlSerializable interface with its members populated from the location of the XmlReader.

适用于