XmlSerializationReader.ReadReferencedElement 方法
定义
从 SOAP 编码的 multiRef 元素反序列化对象。Deserializes an object from a SOAP-encoded multiRef element.
重载
| ReadReferencedElement() |
此 API 支持产品基础结构,不能在代码中直接使用。 从 SOAP 编码的 |
| ReadReferencedElement(String, String) |
此 API 支持产品基础结构,不能在代码中直接使用。 从 SOAP 编码的 |
注解
的受保护成员 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.
ReadReferencedElement()
从 SOAP 编码的 multiRef XML 元素反序列化对象。Deserializes an object from a SOAP-encoded multiRef XML element.
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
System::Object ^ ReadReferencedElement();
protected object? ReadReferencedElement ();
protected object ReadReferencedElement ();
member this.ReadReferencedElement : unit -> obj
Protected Function ReadReferencedElement () As Object
返回
在文档中引用的元素的值。The value of the referenced element in the document.
注解
的受保护成员 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.
ReadReferencedElement方法通过读取元素的特性获取 XML 架构数据类型 xsi:type multiRef 。The ReadReferencedElement method obtains the XML Schema data type by reading the xsi:type attribute of the multiRef element. 前缀 xsi 指的是 XML 架构命名空间的实例。The prefix xsi refers to the instance of the XML Schema namespace.
SOAP 编码允许唯一 XML 元素在 SOAP 消息内作为 multiRef 由特性标识的元素出现一次 id 。SOAP encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. id可以使用 href 属性 (或 ref) 替换元素中的 SOAP 1.2 中的特性多次引用该值。The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.
Soap 编码在 SOAP 1.1 规范的第5节中进行了介绍。SOAP encoding is described in Section 5 of the SOAP 1.1 specification.
适用于
ReadReferencedElement(String, String)
从 SOAP 编码的 multiRef XML 元素反序列化对象。Deserializes an object from a SOAP-encoded multiRef XML element.
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
System::Object ^ ReadReferencedElement(System::String ^ name, System::String ^ ns);
protected object? ReadReferencedElement (string? name, string? ns);
protected object ReadReferencedElement (string name, string ns);
member this.ReadReferencedElement : string * string -> obj
Protected Function ReadReferencedElement (name As String, ns As String) As Object
参数
- name
- String
元素的 XML 架构数据类型的本地名称。The local name of the element's XML Schema data type.
- ns
- String
元素的 XML 架构数据类型的命名空间。The namespace of the element's XML Schema data type.
返回
在文档中引用的元素的值。The value of the referenced element in the document.
注解
的受保护成员 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.
此方法的签名 ReadReferencedElement 从方法参数获取元素的 XML 架构数据类型, multiRef 而不是读取 xsi:type 属性。This signature of the ReadReferencedElement method obtains the XML Schema data type of the multiRef element from the method parameters rather than by reading the xsi:type attribute. 前缀 xsi 指的是 XML 架构命名空间的实例。The prefix xsi refers to the instance of the XML Schema namespace.
SOAP 编码允许唯一 XML 元素在 SOAP 消息内作为 multiRef 由特性标识的元素出现一次 id 。SOAP encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. id可以使用 href 属性 (或 ref) 替换元素中的 SOAP 1.2 中的特性多次引用该值。The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.
Soap 编码在 SOAP 1.1 规范的第5节中进行了介绍。SOAP encoding is described in Section 5 of the SOAP 1.1 specification.