Uređivanje

Dijeli putem


XmlSerializationReader Class

Definition

Controls deserialization by the XmlSerializer class.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class XmlSerializationReader abstract : System::Xml::Serialization::XmlSerializationGeneratedCode
public ref class XmlSerializationReader abstract
public abstract class XmlSerializationReader : System.Xml.Serialization.XmlSerializationGeneratedCode
public abstract class XmlSerializationReader
type XmlSerializationReader = class
    inherit XmlSerializationGeneratedCode
type XmlSerializationReader = class
Public MustInherit Class XmlSerializationReader
Inherits XmlSerializationGeneratedCode
Public MustInherit Class XmlSerializationReader
Inheritance
XmlSerializationReader
Inheritance
XmlSerializationReader

Remarks

During initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for deserialization that is derived from the abstract XmlSerializationReader class. XmlSerializationReader is also implemented within the .NET Framework for deserialization of XML documents into DiscoveryDocument and ServiceDescription objects.

You should not derive classes from XmlSerializationReader. Instead, call one of the Deserialize methods.

Constructors

XmlSerializationReader()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the XmlSerializationReader class.

Properties

DecodeName

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets a value that determines whether XML strings are translated into valid .NET type names.

Document

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the XML document object into which the XML document is being deserialized.

IsReturnValue

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets a value that should be true for a SOAP 1.1 return value.

Reader

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the XmlReader object that is being used by XmlSerializationReader.

ReaderCount

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the current count of the XmlReader.

Methods

AddFixup(XmlSerializationReader+CollectionFixup)

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores an object that contains a callback method that will be called, as necessary, to fill in .NET collections or enumerations that map to SOAP-encoded arrays or SOAP-encoded, multi-referenced elements.

AddFixup(XmlSerializationReader+Fixup)

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores an object that contains a callback method instance that will be called, as necessary, to fill in the objects in a SOAP-encoded array.

AddReadCallback(String, String, Type, XmlSerializationReadCallback)

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores an implementation of the XmlSerializationReadCallback delegate and its input data for a later invocation.

AddTarget(String, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores an object that is being deserialized from a SOAP-encoded multiRef element for later access through the GetTarget(String) method.

CheckReaderCount(Int32, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code.

Checks whether the deserializer has advanced.

CollapseWhitespace(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes all occurrences of white space characters from the beginning and end of the specified string.

CreateAbstractTypeException(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that an object being deserialized should be abstract.

CreateBadDerivationException(String, String, String, String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Populates an object from its XML representation at the current location of the XmlReader, with an option to read the inner element.

CreateCtorHasSecurityException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because the constructor throws a security exception.

CreateInaccessibleConstructorException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because there is no constructor available.

CreateInvalidCastException(Type, Object, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidCastException that indicates that an explicit reference conversion failed.

CreateInvalidCastException(Type, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidCastException that indicates that an explicit reference conversion failed.

CreateMissingIXmlSerializableType(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that a derived type that is mapped to an XML Schema data type cannot be located.

CreateReadOnlyCollectionException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that a SOAP-encoded collection type cannot be modified and its values cannot be filled in.

CreateUnknownConstantException(String, Type)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that an enumeration value is not valid.

CreateUnknownNodeException()

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that the current position of XmlReader represents an unknown XML node.

CreateUnknownTypeException(XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an InvalidOperationException that indicates that a type is unknown.

EnsureArrayIndex(Array, Int32, Type)

This API supports the product infrastructure and is not intended to be used directly from your code.

Ensures that a given array, or a copy, is large enough to contain a specified index.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FixupArrayRefs(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Fills in the values of a SOAP-encoded array whose data type maps to a .NET reference type.

GetArrayLength(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the length of the SOAP-encoded array where the XmlReader is currently positioned.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNullAttr()

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether the XML element where the XmlReader is currently positioned has a null attribute set to the value true.

GetTarget(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets an object that is being deserialized from a SOAP-encoded multiRef element and that was stored earlier by AddTarget(String, Object).

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetXsiType()

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the value of the xsi:type attribute for the XML element at the current location of the XmlReader.

InitCallbacks()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes callback methods that populate objects that map to SOAP-encoded XML data.

InitIDs()

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores element and attribute names in a NameTable object.

IsXmlnsAttribute(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether an XML attribute name indicates an XML namespace.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ParseWsdlArrayType(XmlAttribute)

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the value of the XML attribute if it is of type arrayType from the Web Services Description Language (WSDL) namespace.

ReadElementQualifiedName()

This API supports the product infrastructure and is not intended to be used directly from your code.

Makes the XmlReader read the fully qualified name of the element where it is currently positioned.

ReadEndElement()

This API supports the product infrastructure and is not intended to be used directly from your code.

Makes the XmlReader read an XML end tag.

ReadNull()

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read the current XML element if the element has a null attribute with the value true.

ReadNullableQualifiedName()

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read the fully qualified name of the element where it is currently positioned.

ReadNullableString()

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read a simple, text-only XML element that could be null.

ReadReference(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Reads the value of the href attribute (ref attribute for SOAP 1.2) that is used to refer to an XML element in SOAP encoding.

ReadReferencedElement()

This API supports the product infrastructure and is not intended to be used directly from your code.

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

ReadReferencedElement(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

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

ReadReferencedElements()

This API supports the product infrastructure and is not intended to be used directly from your code.

Deserializes objects from the SOAP-encoded multiRef elements in a SOAP message.

ReadReferencingElement(String, String, Boolean, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Deserializes an object from an XML element in a SOAP message that contains a reference to a multiRef element.

ReadReferencingElement(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Deserializes an object from an XML element in a SOAP message that contains a reference to a multiRef element.

ReadReferencingElement(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Deserializes an object from an XML element in a SOAP message that contains a reference to a multiRef element.

ReadSerializable(IXmlSerializable, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

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

ReadSerializable(IXmlSerializable)

This API supports the product infrastructure and is not intended to be used directly from your code.

Populates an object from its XML representation at the current location of the XmlReader.

ReadString(String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns the result of a call to the ReadString() method of the XmlReader class, trimmed of white space if needed, and appended to the input value.

ReadString(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces the result of a call to the ReadString() method appended to the input value.

ReadTypedNull(XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code.

Reads an XML element that allows null values (xsi:nil = 'true') and returns a generic Nullable<T> value.

ReadTypedPrimitive(XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the value of the XML node at which the XmlReader is currently positioned.

ReadXmlDocument(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read an XML document root element at its current position.

ReadXmlNode(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read the XML node at its current position.

Referenced(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Stores an object to be deserialized from a SOAP-encoded multiRef element.

ResolveDynamicAssembly(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets a dynamically generated assembly by name.

ShrinkArray(Array, Int32, Type, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Ensures that a given array, or a copy, is no larger than a specified length.

ToByteArrayBase64(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read the string value at its current position and return it as a base-64 byte array.

ToByteArrayBase64(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a base-64 byte array from an input string.

ToByteArrayHex(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlReader to read the string value at its current position and return it as a hexadecimal byte array.

ToByteArrayHex(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a hexadecimal byte array from an input string.

ToChar(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a Char object from an input string.

ToDate(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a DateTime object from an input string.

ToDateTime(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a DateTime object from an input string.

ToEnum(String, Hashtable, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a numeric enumeration value from a string that consists of delimited identifiers that represent constants from the enumerator list.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToTime(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Produces a DateTime from a string that represents the time.

ToXmlName(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Decodes an XML name.

ToXmlNCName(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Decodes an XML name.

ToXmlNmToken(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Decodes an XML name.

ToXmlNmTokens(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Decodes an XML name.

ToXmlQualifiedName(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Obtains an XmlQualifiedName from a name that may contain a prefix.

UnknownAttribute(Object, XmlAttribute, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownAttribute(Object, XmlAttribute)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownElement(Object, XmlElement, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownElement event for the current position of the XmlReader.

UnknownElement(Object, XmlElement)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownElement event for the current position of the XmlReader.

UnknownNode(Object, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownNode event for the current position of the XmlReader.

UnknownNode(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownNode event for the current position of the XmlReader.

UnreferencedObject(String, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnreferencedObject event for the current position of the XmlReader.

Applies to

See also