XmlObjectSerializer.IsStartObject Method

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value that specifies whether the serializer can read the object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

Name Description
IsStartObject(XmlDictionaryReader) Gets a value that specifies whether the XmlDictionaryReader is positioned over an XML element that can be read.
IsStartObject(XmlReader) Gets a value that specifies whether the XmlReader is positioned over an XML element that can be read.

Top

Remarks

This method checks whether the reader is positioned on an element to read and returns true if the element is the top-level element for the object found in the XML stream or document. To return true, the found element must have an expected name. The actual expected element name depends on the implementation of the serializer.

With the DataContractSerializer, the starting element is specified in the constructor of the extension class. For an example, see the constructors for the DataContractSerializer class.

See Also

Reference

XmlObjectSerializer Class

XmlObjectSerializer Members

System.Runtime.Serialization Namespace