SyndicationFeedFormatter.TryParseContent Methode

Definitie

Pogingen om inhoud van syndicatie-items te parseren met behulp van het opgegeven SyndicationItem exemplaar.

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

De XmlReader te lezen waaruit.

item
SyndicationItem

Het SyndicationItem exemplaar dat moet worden gebruikt.

contentType
String

Het inhoudstype.

version
String

De syndicatieversie die moet worden gebruikt tijdens het parseren.

content
SyndicationContent

De inhoud die moet worden geanalyseerd.

Retouren

true als de inhoud is geparseerd; anders false.

Opmerkingen

Als u wilt bepalen hoe syndicatie-inhoud wordt geparseerd, leidt u uw eigen klasse af van SyndicationItem en overschrijft u de

TryParseContent(XmlReader, String, String, SyndicationContent) methode.

Van toepassing op