SyndicationItem::TryParseContent Method (XmlReader^, String^, String^, SyndicationContent^%)
.NET Framework (current version)
Attempts to parse content.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public protected: virtual bool TryParseContent( XmlReader^ reader, String^ contentType, String^ version, [OutAttribute] 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::BooleanA 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
Available since 3.5
Silverlight
Available since 2.0
Show: