SyndicationItemFormatter.TryParseContent Methode

Definitie

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

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

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

Een waarde die aangeeft of de inhoud is geparseerd.

Opmerkingen

Als u wilt bepalen hoe syndicatie-inhoud wordt geparseerd, moet u uw eigen klasse afleiden van SyndicationItem de methode en deze TryParseContent(XmlReader, String, String, SyndicationContent) overschrijven.

Van toepassing op