XmlSerializer.CanDeserialize Method

July 28, 2014

Gets a value that indicates whether this XmlSerializer can deserialize a specified XML document.

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

public virtual bool CanDeserialize(
	XmlReader xmlReader
)

Parameters

xmlReader
Type: System.Xml.XmlReader
An XmlReader that points to the document to deserialize.

Return Value

Type: System.Boolean
true if this XmlSerializer can deserialize the object that the XmlReader points to; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft