SyndicationItem.TryParseContent Method

Definition

Attempts to parse content.

C#
protected internal virtual bool TryParseContent(System.Xml.XmlReader reader, string contentType, string version, out System.ServiceModel.Syndication.SyndicationContent content);

Parameters

reader
XmlReader

The XmlReader to read from.

contentType
String

The content type of the content.

version
String

The syndication version to use while parsing.

content
SyndicationContent

The SyndicationContent instance to load the parsed content into.

Returns

A value that specifies whether the content was parsed successfully.

Remarks

This method is an extension point that allows you to handle the deserialization of a custom content. To do this, you must derive a class from SyndicationItem and override this method. This method is called for all unrecognized content.

Applies to

Produkt Wersje
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)