Export (0) Print
Expand All

XmlSerializationReader Class

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

Controls deserialization by the XmlSerializer class.

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

'Declaration
Public MustInherit Class XmlSerializationReader _
	Inherits XmlSerializationGeneratedCode

The XmlSerializationReader type exposes the following members.

  NameDescription
Protected methodXmlSerializationReaderInfrastructure. Initializes a new instance of the XmlSerializationReader class.
Top

  NameDescription
Protected propertyDecodeNameInfrastructure. Gets or sets a value that determines whether XML strings are translated into valid Silverlight type names.
Protected propertyIsReturnValueInfrastructure. Gets or sets a value that should be true for a SOAP 1.1 return value.
Protected propertyReaderGets the XmlReader object that is being used by XmlSerializationReader.
Protected propertyReaderCountGets the current count of the XmlReader.
Top

  NameDescription
Protected methodCheckReaderCountChecks whether the deserializer has advanced.
Protected methodCollapseWhitespaceRemoves all occurrences of white space characters from the beginning and end of the specified string.
Protected methodCreateAbstractTypeExceptionCreates an InvalidOperationException that indicates that an object being deserialized should be abstract.
Protected methodCreateBadDerivationExceptionPopulates an object from its XML representation at the current location of the XmlReader, with an option to read the inner element.
Protected methodCreateCtorHasSecurityExceptionCreates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because the constructor throws a security exception.
Protected methodCreateInaccessibleConstructorExceptionCreates an InvalidOperationException that indicates that an object being deserialized cannot be instantiated because there is no constructor available.
Protected methodCreateInvalidCastException(Type, Object)Creates an InvalidCastException that indicates that an explicit reference conversion failed.
Protected methodCreateInvalidCastException(Type, Object, String)Creates an InvalidCastException that indicates that an explicit reference conversion failed.
Protected methodCreateMissingIXmlSerializableTypeCreates an InvalidOperationException that indicates that a derived type that is mapped to an XML Schema data type cannot be located.
Protected methodCreateReadOnlyCollectionExceptionCreates an InvalidOperationException that indicates that a SOAP-encoded collection type cannot be modified and its values cannot be filled in.
Protected methodCreateUnknownConstantExceptionCreates an InvalidOperationException that indicates that an enumeration value is not valid.
Protected methodCreateUnknownNodeExceptionCreates an InvalidOperationException that indicates that the current position of XmlReader represents an unknown XML node.
Protected methodCreateUnknownTypeExceptionCreates an InvalidOperationException that indicates that a type is unknown.
Protected methodEnsureArrayIndexEnsures that a given array, or a copy, is large enough to contain a specified index.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetNullAttrInfrastructure. Determines whether the XML element where the XmlReader is currently positioned has a null attribute set to the value true.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetXsiTypeGets the value of the xsi:type attribute for the XML element at the current location of the XmlReader.
Protected methodInitCallbacksInitializes callback methods that populate objects that map to SOAP-encoded XML data.
Protected methodInitIDsInfrastructure. Stores element and attribute names in a NameTable object.
Protected methodIsXmlnsAttributeInfrastructure. Determines whether an XML attribute name indicates an XML namespace.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodReadElementQualifiedNameMakes the XmlReader read the fully qualified name of the element where it is currently positioned.
Protected methodReadEndElementMakes the XmlReader read an XML end tag.
Protected methodReadNullInstructs the XmlReader to read the current XML element if the element has a null attribute with the value true.
Protected methodReadNullableQualifiedNameInstructs the XmlReader to read the fully-qualified name of the element where it is currently positioned.
Protected methodReadNullableStringInstructs the XmlReader to read a simple, text-only XML element that could be Nothing.
Protected methodReadSerializable(IXmlSerializable)Populates an object from its XML representation at the current location of the XmlReader.
Protected methodReadSerializable(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.
Protected methodReadString(String)Produces the result of a call to the ReadString method appended to the input value.
Protected methodReadString(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.
Protected methodReadTypedNullReads an XML element that allows null values (xsi:nil = 'true') and returns a generic Nullable(Of T) value.
Protected methodReadTypedPrimitiveGets the value of the XML node at which the XmlReader is currently positioned.
Protected methodShrinkArrayEnsures that a given array, or a copy, is no larger than a specified length.
Protected methodToByteArrayBase64(Boolean)Instructs the XmlReader to read the string value at its current position and return it as a base-64 byte array.
Protected methodStatic memberToByteArrayBase64(String)Produces a base-64 byte array from an input string.
Protected methodToByteArrayHex(Boolean)Instructs the XmlReader to read the string value at its current position and return it as a hexadecimal byte array.
Protected methodStatic memberToByteArrayHex(String)Produces a hexadecimal byte array from an input string.
Protected methodStatic memberToCharProduces a Char object from an input string.
Protected methodStatic memberToDateProduces a DateTime object from an input string.
Protected methodStatic memberToDateTimeProduces a DateTime object from an input string.
Protected methodStatic memberToEnumThis 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.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodStatic memberToTimeProduces a DateTime object from a string that represents the time.
Protected methodStatic memberToXmlNameDecodes an XML name.
Protected methodStatic memberToXmlNCNameDecodes an XML name.
Protected methodStatic memberToXmlNmTokenDecodes an XML name.
Protected methodStatic memberToXmlNmTokensDecodes an XML name.
Protected methodToXmlQualifiedNameObtains an XmlQualifiedName from a name that might contain a prefix.
Protected methodUnknownNode(Object)Raises an UnknownNode event for the current position of the XmlReader.
Protected methodUnknownNode(Object, String)Raises an UnknownNode event for the current position of the XmlReader.
Top

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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft