SyndicationFeedFormatter.CanRead(XmlReader) 方法
定义
public:
abstract bool CanRead(System::Xml::XmlReader ^ reader);
public abstract bool CanRead (System.Xml.XmlReader reader);
abstract member CanRead : System.Xml.XmlReader -> bool
Public MustOverride Function CanRead (reader As XmlReader) As Boolean
参数
- reader
- XmlReader
要检查的 XML 读取器。An XML reader to check.
返回
如果 XML 读取器包含有效的联合源,则为 true;否则为 false。true, if the XML reader contains a valid syndication feed, otherwise false.
注解
此方法验证该开始元素名称和命名空间与 RSS 2.0 或 Atom 1.0 规范的开始元素名称和命名空间是否匹配。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.