Export (0) Print
Expand All

XmlObjectSerializer.IsStartObject Method

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.

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

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.

Show:
© 2014 Microsoft