Compartir a través de


SyndicationItemFormatter.TryParseContent Método

Definición

Intenta analizar el contenido del elemento de distribución mediante la instancia SyndicationItem especificada.

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 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 static bool TryParseContent (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string contentType, string version, 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 Shared Function TryParseContent (reader As XmlReader, item As SyndicationItem, contentType As String, version As String, ByRef content As SyndicationContent) As Boolean
Protected Friend Shared Function TryParseContent (reader As XmlReader, item As SyndicationItem, contentType As String, version As String, ByRef content As SyndicationContent) As Boolean

Parámetros

reader
XmlReader

XmlReader desde el que se va a leer.

item
SyndicationItem

Instancia SyndicationItem que se va a usar.

contentType
String

Tipo de contenido.

version
String

Versión de distribución que se va a usar en el análisis.

content
SyndicationContent

Contenido que se va a analizar.

Devoluciones

Boolean

Valor que indica si se analizó el contenido correctamente.

Comentarios

Para controlar cómo se analiza el contenido de la distribución, derive su propia clase de SyndicationItem e invalide el método TryParseContent(XmlReader, String, String, SyndicationContent).

Se aplica a