SyndicationFeedFormatter.TryParseContent Methode

Definition

Versucht, Den Inhalt von Syndication-Elementen mithilfe 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 zu lesende Text.

item
SyndicationItem

Die SyndicationItem zu verwendende Instanz.

contentType
String

Der Inhaltstyp.

version
String

Die syndication-Version, die beim Analysieren verwendet werden soll.

content
SyndicationContent

Der zu analysierende Inhalt.

Gibt zurück

true wenn der Inhalt erfolgreich analysiert wurde; andernfalls false.

Hinweise

Um zu steuern, wie Syndication-Inhalte analysiert werden, leiten Sie Ihre eigene Klasse von SyndicationItem dieser ab und überschreiben Sie die

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

Gilt für: