SyndicationPerson.TryParseAttribute(String, String, String, String) Método
Definição
Tenta analisar uma extensão de atributo.Attempts to parse an attribute extension.
protected public:
virtual bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::String ^ version);
protected internal virtual bool TryParseAttribute (string name, string ns, string value, string version);
abstract member TryParseAttribute : string * string * string * string -> bool
override this.TryParseAttribute : string * string * string * string -> bool
Protected Friend Overridable Function TryParseAttribute (name As String, ns As String, value As String, version As String) As Boolean
Parâmetros
- name
- String
O nome do elemento.The name of the element.
- ns
- String
O namespace do elemento.The namespace of the element.
- value
- String
O atributo a ser analisado.The attribute to parse.
- version
- String
A versão de sindicalização para usar durante a análise.The syndication version to use when parsing.
Retornos
Um valor que especifica se a extensão de atributo foi analisada com êxito.A value that specifies whether the attribute extension was parsed successfully.
Exceções
XML inválido encontrado durante a leitura.Invalid XML encountered during read.
Comentários
As extensões de atributo são atributos personalizados que não são definidos pelas especificações Atom 1,0 ou RSS 2,0.Attribute extensions are custom attributes that are not defined by the Atom 1.0 or RSS 2.0 specifications. Eles são serializados como um atributo do <author> <contributor> elemento ou para Atom 1,0 ou <managingEditor> , <a10:author> ou <a10:contributor> elemento para RSS 2,0.They are serialized as an attribute of the <author> or <contributor> element for Atom 1.0 or <managingEditor>, <a10:author>, or <a10:contributor> element for RSS 2.0. Esse método é um ponto de extensão que permite que você manipule a desserialização de uma extensão de atributo personalizado.This method is an extension point that allows you to handle the deserialization of a custom attribute extension. Para fazer isso, você deve derivar uma classe de SyndicationPerson e substituir esse método.To do this, you must derive a class from SyndicationPerson and override this method. Esse método é chamado para todas as extensões de atributo não reconhecidas.This method is called for all unrecognized attribute extensions.