Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SyndicationFeedFormatter.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 internal 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 when 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.