Share via


SyndicationFeedFormatter.TryParseContent Methode

Definition

Versucht, Syndication-Elementinhalt mit der angegebenen SyndicationItem-Instanz zu analysieren.

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

Parameter

reader
XmlReader

Der XmlReader, aus dem gelesen werden soll.

item
SyndicationItem

Die zu verwendende SyndicationItem-Instanz.

contentType
String

Der Inhaltstyp.

version
String

Die für die Analyse zu verwendende Syndication-Version.

content
SyndicationContent

Der zu analysierende Inhalt.

Gibt zurück

true, wenn der Inhalt erfolgreich analysiert wurde, andernfalls false.

Hinweise

Zur Kontrolle der Analyse von Syndication-Inhalten eine eigene Klasse von SyndicationItem ableiten und die

TryParseContent(XmlReader, String, String, SyndicationContent) -Methode.

Gilt für: