This documentation is archived and is not being maintained.

XmlSerializationReader.ReadReferencedElement Method (String, String)

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Deserializes an object from a SOAP-encoded multiRef XML element.

Namespace: System.Xml.Serialization
Assembly: System.Xml (in system.xml.dll)

protected Object ReadReferencedElement (
	string name,
	string ns
protected Object ReadReferencedElement (
	String name, 
	String ns
protected function ReadReferencedElement (
	name : String, 
	ns : String
) : Object



The local name of the element's XML Schema data type.


The namespace of the element's XML Schema data type.

Return Value

The value of the referenced element in the document.

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

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. The prefix xsi refers to the instance of the XML Schema namespace.

SOAP encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.

SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0