SyndicationItemFormatter.TryParseElement Método

Definição

Tenta analisar uma extensão de elemento.Attempts to parse an element extension.

Sobrecargas

TryParseElement(XmlReader, SyndicationCategory, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationCategory especificada.Attempts to parse an element extension using the specified SyndicationCategory instance.

TryParseElement(XmlReader, SyndicationItem, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationItem especificada.Attempts to parse an element extension using the specified SyndicationItem instance.

TryParseElement(XmlReader, SyndicationLink, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationLink especificada.Attempts to parse an element extension using the specified SyndicationLink instance.

TryParseElement(XmlReader, SyndicationPerson, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationPerson especificada.Attempts to parse an element extension using the specified SyndicationPerson instance.

TryParseElement(XmlReader, SyndicationCategory, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationCategory especificada.Attempts to parse an element extension using the specified SyndicationCategory instance.

protected:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationCategory category, string version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationCategory category, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationCategory * string -> bool
Protected Shared Function TryParseElement (reader As XmlReader, category As SyndicationCategory, version As String) As Boolean
Protected Friend Shared Function TryParseElement (reader As XmlReader, category As SyndicationCategory, version As String) As Boolean

Parâmetros

reader
XmlReader

O XmlReader para leitura.The XmlReader to read from.

category
SyndicationCategory

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

version
String

A versão de sindicalização para usar durante a análise.The syndication version to use when parsing.

Retornos

Boolean

Um valor que indica se o elemento foi analisado com êxito.A value that indicates whether the element was parsed successfully.

Comentários

Para controlar como as extensões de elemento são analisadas, derive sua própria classe de SyndicationCategory e substitua o TryParseElement(XmlReader, String) método.To control how element extensions are parsed, derive your own class from SyndicationCategory and override the TryParseElement(XmlReader, String) method.

Aplica-se a

TryParseElement(XmlReader, SyndicationItem, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationItem especificada.Attempts to parse an element extension using the specified SyndicationItem instance.

protected:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationItem item, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationItem * string -> bool
Protected Shared Function TryParseElement (reader As XmlReader, item As SyndicationItem, version As String) As Boolean
Protected Friend Shared Function TryParseElement (reader As XmlReader, item As SyndicationItem, version As String) 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.

version
String

A versão de sindicalização para usar durante a análise.The syndication version to use when parsing.

Retornos

Boolean

Um valor que indica se o elemento foi analisado com êxito.A value that indicates whether the element was parsed successfully.

Comentários

Para controlar como as extensões de elemento são analisadas, derive sua própria classe de SyndicationItem e substitua o TryParseElement(XmlReader, String) método.To control how element extensions are parsed, derive your own class from SyndicationItem and override the TryParseElement(XmlReader, String) method.

Aplica-se a

Tenta analisar uma extensão de elemento usando a instância SyndicationLink especificada.Attempts to parse an element extension using the specified SyndicationLink instance.

protected:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationLink link, string version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationLink link, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationLink * string -> bool
Protected Shared Function TryParseElement (reader As XmlReader, link As SyndicationLink, version As String) As Boolean
Protected Friend Shared Function TryParseElement (reader As XmlReader, link As SyndicationLink, version As String) As Boolean

Parâmetros

reader
XmlReader

O XmlReader para leitura.The XmlReader to read from.

link
SyndicationLink

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

version
String

A versão de sindicalização para usar durante a análise.The syndication version to use when parsing.

Retornos

Boolean

Um valor que indica se o elemento foi analisado com êxito.A value that indicates whether the element was parsed successfully.

Comentários

Para controlar como as extensões de elemento são analisadas, derive sua própria classe de SyndicationLink e substitua o TryParseElement(XmlReader, String) método.To control how element extensions are parsed, derive your own class from SyndicationLink and override the TryParseElement(XmlReader, String) method.

Aplica-se a

TryParseElement(XmlReader, SyndicationPerson, String)

Tenta analisar uma extensão de elemento usando a instância SyndicationPerson especificada.Attempts to parse an element extension using the specified SyndicationPerson instance.

protected:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected public:
 static bool TryParseElement(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationPerson person, string version);
protected internal static bool TryParseElement (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationPerson person, string version);
static member TryParseElement : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationPerson * string -> bool
Protected Shared Function TryParseElement (reader As XmlReader, person As SyndicationPerson, version As String) As Boolean
Protected Friend Shared Function TryParseElement (reader As XmlReader, person As SyndicationPerson, version As String) As Boolean

Parâmetros

reader
XmlReader

O XmlReader para leitura.The XmlReader to read from.

person
SyndicationPerson

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

version
String

A versão de sindicalização para usar durante a análise.The syndication version to use when parsing.

Retornos

Boolean

Um valor que indica se o elemento foi analisado com êxito.A value that indicates whether the element was parsed successfully.

Comentários

Para controlar como as extensões de elemento são analisadas, derive sua própria classe de SyndicationPerson e substitua o TryParseElement(XmlReader, String) método.To control how element extensions are parsed, derive your own class from SyndicationPerson and override the TryParseElement(XmlReader, String) method.

Aplica-se a