SyndicationItemFormatter.TryParseContent Método

Definição

Tenta analisar o conteúdo do item de sindicalização usando a instância 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

O XmlReader para leitura.

item
SyndicationItem

A instância SyndicationItem a ser usada.

contentType
String

O tipo de conteúdo.

version
String

A versão de sindicalização a ser usada durante a análise.

content
SyndicationContent

O conteúdo a ser analisado.

Retornos

Boolean

Um valor que indica se o conteúdo foi analisado com êxito.

Comentários

Para controlar como o conteúdo de sindicalização é analisado, derive sua própria classe SyndicationItem e substitua o TryParseContent(XmlReader, String, String, SyndicationContent) método.

Aplica-se a