Bewerken

Share via


SyndicationItemFormatter.TryParseContent Method

Definition

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

protected:
 static bool TryParseContent(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ contentType, System::String ^ version, [Runtime::InteropServices::Out] System::ServiceModel::Syndication::SyndicationContent ^ % content);
protected static bool TryParseContent (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string contentType, string version, out System.ServiceModel.Syndication.SyndicationContent content);
static member TryParseContent : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationItem * string * string * SyndicationContent -> bool
Protected Shared Function TryParseContent (reader As XmlReader, item As SyndicationItem, contentType As String, version As String, ByRef content As SyndicationContent) As Boolean

Parameters

reader
XmlReader

The XmlReader to read from.

item
SyndicationItem

The SyndicationItem instance to use.

contentType
String

The content type.

version
String

The syndication version to use while parsing.

content
SyndicationContent

The content to parse.

Returns

A value that indicates whether the content was parsed successfully.

Remarks

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

Applies to