XmlSerializationReader Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Controls deserialization by the XmlSerializer class.
Inheritance Hierarchy
System.Object
System.Xml.Serialization.XmlSerializationGeneratedCode
System.Xml.Serialization.XmlSerializationReader
Namespace: System.Xml.Serialization
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Syntax
'Declaration
Public MustInherit Class XmlSerializationReader _
Inherits XmlSerializationGeneratedCode
public abstract class XmlSerializationReader : XmlSerializationGeneratedCode
The XmlSerializationReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlSerializationReader | Infrastructure. Initializes a new instance of the XmlSerializationReader class. |
Top
Properties
Name | Description | |
---|---|---|
DecodeName | Infrastructure. Gets or sets a value that determines whether XML strings are translated into valid Silverlight type names. | |
IsReturnValue | Infrastructure. Gets or sets a value that should be true for a SOAP 1.1 return value. | |
Reader | Gets the XmlReader object that is being used by XmlSerializationReader. | |
ReaderCount | Gets the current count of the XmlReader. |
Top
Methods
Name | Description | |
---|---|---|
CheckReaderCount | Checks whether the deserializer has advanced. | |
CollapseWhitespace | Removes all occurrences of white space characters from the beginning and end of the specified string. | |
CreateAbstractTypeException | Creates an InvalidOperationException that indicates that an object being deserialized should be abstract. | |
CreateBadDerivationException | Populates an object from its XML representation at the current location of the XmlReader, with an option to read the inner element. | |
CreateCtorHasSecurityException | Creates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because the constructor throws a security exception. | |
CreateInaccessibleConstructorException | Creates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because there is no constructor available. | |
CreateInvalidCastException(Type, Object) | Creates an InvalidCastException that indicates that an explicit reference conversion failed. | |
CreateInvalidCastException(Type, Object, String) | Creates an InvalidCastException that indicates that an explicit reference conversion failed. | |
CreateMissingIXmlSerializableType | Creates an InvalidOperationException that indicates that a derived type that is mapped to an XML Schema data type cannot be located. | |
CreateReadOnlyCollectionException | Creates an InvalidOperationException that indicates that a SOAP-encoded collection type cannot be modified and its values cannot be filled in. | |
CreateUnknownConstantException | Creates an InvalidOperationException that indicates that an enumeration value is not valid. | |
CreateUnknownNodeException | Creates an InvalidOperationException that indicates that the current position of XmlReader represents an unknown XML node. | |
CreateUnknownTypeException | Creates an InvalidOperationException that indicates that a type is unknown. | |
EnsureArrayIndex | 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.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNullAttr | Infrastructure. Determines whether the XML element where the XmlReader is currently positioned has a null attribute set to the value true. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetXsiType | Gets the value of the xsi:type attribute for the XML element at the current location of the XmlReader. | |
InitCallbacks | Initializes callback methods that populate objects that map to SOAP-encoded XML data. | |
InitIDs | Infrastructure. Stores element and attribute names in a NameTable object. | |
IsXmlnsAttribute | Infrastructure. Determines whether an XML attribute name indicates an XML namespace. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadElementQualifiedName | Makes the XmlReader read the fully qualified name of the element where it is currently positioned. | |
ReadEndElement | Makes the XmlReader read an XML end tag. | |
ReadNull | Instructs the XmlReader to read the current XML element if the element has a null attribute with the value true. | |
ReadNullableQualifiedName | Instructs the XmlReader to read the fully-qualified name of the element where it is currently positioned. | |
ReadNullableString | Instructs the XmlReader to read a simple, text-only XML element that could be nulla null reference (Nothing in Visual Basic). | |
ReadSerializable(IXmlSerializable) | Populates an object from its XML representation at the current location of the XmlReader. | |
ReadSerializable(IXmlSerializable, Boolean) | This method supports the .NET Framework 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) | Produces the result of a call to the ReadString method appended to the input value. | |
ReadString(String, Boolean) | Returns the result of a call to the ReadString method of the XmlReader class, trimmed of white space if required, and appended to the input value. | |
ReadTypedNull | Reads an XML element that allows null values (xsi:nil = 'true') and returns a generic Nullable<T> value. | |
ReadTypedPrimitive | Gets the value of the XML node at which the XmlReader is currently positioned. | |
ShrinkArray | Ensures that a given array, or a copy, is no larger than a specified length. | |
ToByteArrayBase64(Boolean) | Instructs the XmlReader to read the string value at its current position and return it as a base-64 byte array. | |
ToByteArrayBase64(String) | Produces a base-64 byte array from an input string. | |
ToByteArrayHex(Boolean) | Instructs the XmlReader to read the string value at its current position and return it as a hexadecimal byte array. | |
ToByteArrayHex(String) | Produces a hexadecimal byte array from an input string. | |
ToChar | Produces a Char object from an input string. | |
ToDate | Produces a DateTime object from an input string. | |
ToDateTime | Produces a DateTime object from an input string. | |
ToEnum | This method supports the .NET Framework 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 | Produces a DateTime object from a string that represents the time. | |
ToXmlName | Decodes an XML name. | |
ToXmlNCName | Decodes an XML name. | |
ToXmlNmToken | Decodes an XML name. | |
ToXmlNmTokens | Decodes an XML name. | |
ToXmlQualifiedName | Obtains an XmlQualifiedName from a name that might contain a prefix. | |
UnknownNode(Object) | Raises an UnknownNode event for the current position of the XmlReader. | |
UnknownNode(Object, String) | Raises an UnknownNode event for the current position of the XmlReader. |
Top
Remarks
During initialization, the Silverlight 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 Silverlight for deserialization of XML documents into DiscoveryDocument and ServiceDescription objects.
You should not derive classes from XmlSerializationReader. Instead, call one of the Deserialize methods.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.