SyndicationItemFormatter.TryParseContent Method

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

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

protected static bool TryParseContent(
	XmlReader reader,
	SyndicationItem item,
	string contentType,
	string version,
	out SyndicationContent content
)

Parameters

reader
Type: System.Xml.XmlReader
The XmlReader to read from.
item
Type: System.ServiceModel.Syndication.SyndicationItem
The SyndicationItem instance to use.
contentType
Type: System.String
The content type.
version
Type: System.String
The syndication version to use while parsing.
content
Type: System.ServiceModel.Syndication.SyndicationContent%
The content to parse.

Return Value

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

To control how syndication content is parsed, derive your own class from SyndicationItem and override the TryParseContent(XmlReader, String, String, SyndicationContent) method.

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: