SyndicationItemFormatter.TryParseContent(XmlReader, SyndicationItem, String, String, SyndicationContent) Método

Definição

Tenta analisar o conteúdo do item de sindicalização usando a instância SyndicationItem especificada.Attempts to parse syndication item content using the specified SyndicationItem instance.

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.The XmlReader to read from.

item
SyndicationItem

A instância SyndicationItem a ser usada.The SyndicationItem instance to use.

contentType
String

O tipo de conteúdo.The content type.

version
String

A versão de sindicalização a ser usada durante a análise.The syndication version to use while parsing.

content
SyndicationContent

O conteúdo a ser analisado.The content to parse.

Retornos

Boolean

Um valor que indica se o conteúdo foi analisado com êxito.A value that indicates whether the content was parsed successfully.

Comentários

Para controlar como o conteúdo de distribuição é analisado, derive sua própria classe de SyndicationItem e substitua o TryParseContent(XmlReader, String, String, SyndicationContent) método.To control how syndication content is parsed, derive your own class from SyndicationItem and override the TryParseContent(XmlReader, String, String, SyndicationContent) method.

Aplica-se a