SyndicationFeedFormatter.CanRead Method (XmlReader)

 

Verifies whether the specified XmlReader contains a valid syndication feed.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract bool CanRead(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

An XML reader to check.

Return Value

Type: System.Boolean

true, if the XML reader contains a valid syndication feed, otherwise false.

This method verifies whether the start element name and namespace match the start element name and namespace of the RSS 2.0 or Atom 1.0 specification.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: