Muokkaa

Jaa


SyndicationFeedFormatter.TryParseContent Method

Definition

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

protected public:
 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 internal 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 Friend 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

true if the content was parsed successfully; otherwise false.

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