SyndicationItem.TryParseContent Method

Attempts to parse content.

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

protected internal virtual bool TryParseContent(
	XmlReader reader,
	string contentType,
	string version,
	out SyndicationContent content
)

Parameters

reader
Type: System.Xml.XmlReader
The XmlReader to read from.
contentType
Type: System.String
The content type of the content.
version
Type: System.String
The syndication version to use while parsing.
content
Type: System.ServiceModel.Syndication.SyndicationContent%
The SyndicationContent instance to load the parsed content into.

Return Value

Type: System.Boolean
A value that specifies whether the content was parsed successfully.

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show: