CanDeserialize Method
Collapse the table of content
Expand the table of content

XmlSerializer.CanDeserialize Method

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

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:
© 2017 Microsoft