SyndicationFeedFormatter.TryParseContent Method

Definition

Attempts to parse syndication item content using the specified SyndicationItem instance.

protected internal static bool TryParseContent (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string contentType, string version, out System.ServiceModel.Syndication.SyndicationContent content);

Parameters

reader
XmlReader

The XmlReader to read from.

item
SyndicationItem

The SyndicationItem instance to use.

contentType
String

The content type.

version
String

The syndication version to use while parsing.

content
SyndicationContent

The content to parse.

Returns

true if the content was parsed successfully; otherwise false.

Remarks

To control how syndication content is parsed, derive your own class from SyndicationItem and override the

TryParseContent(XmlReader, String, String, SyndicationContent) method.

Applies to

Produkt Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)