Share via


SyndicationFeedFormatter.CanRead Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Verifies that the specified XmlReader contains a valid syndication feed.

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

Syntax

'Declaration
Public MustOverride Function CanRead ( _
    reader As XmlReader _
) As Boolean
public abstract bool CanRead(
    XmlReader reader
)

Parameters

Return Value

Type: System.Boolean
true , if the XML reader contains a valid syndication feed; otherwise, false.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.