SyndicationItem.TryParseContent Method (XmlReader, String, String, SyndicationContent)

 

Attempts to parse content.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.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.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: