SyndicationItemFormatter.TryParseAttribute Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente d’analyser une extension d’attribut.
Surcharges
| Nom | Description |
|---|---|
| TryParseAttribute(String, String, String, SyndicationPerson, String) |
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationPerson . |
| TryParseAttribute(String, String, String, SyndicationLink, String) |
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationLink . |
| TryParseAttribute(String, String, String, SyndicationItem, String) |
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationItem . |
| TryParseAttribute(String, String, String, SyndicationCategory, String) |
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationCategory . |
TryParseAttribute(String, String, String, SyndicationPerson, String)
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationPerson .
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.SyndicationPerson person, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationPerson * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, person As SyndicationPerson, version As String) As Boolean
Paramètres
- name
- String
Le nom de l’élément.
- ns
- String
Espace de noms de l’élément.
- value
- String
Attribut à analyser.
- person
- SyndicationPerson
Instance SyndicationPerson à utiliser.
- version
- String
Version de syndication à utiliser lors de l’analyse.
Retours
Valeur qui indique si l’attribut a été analysé avec succès.
Remarques
Pour contrôler la façon dont les extensions d’attribut sont analysées, dérivez votre propre classe et SyndicationPerson remplacez la TryParseAttribute(String, String, String, String) méthode.
S’applique à
TryParseAttribute(String, String, String, SyndicationLink, String)
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationLink .
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.SyndicationLink link, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationLink * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, link As SyndicationLink, version As String) As Boolean
Paramètres
- name
- String
Le nom de l’élément.
- ns
- String
Espace de noms de l’élément.
- value
- String
Attribut à analyser.
- link
- SyndicationLink
Instance SyndicationLink à utiliser.
- version
- String
Version de syndication à utiliser lors de l’analyse.
Retours
Valeur qui indique si l’attribut a été analysé avec succès.
Remarques
Pour contrôler la façon dont les extensions d’attribut sont analysées, dérivez votre propre classe et SyndicationLink remplacez la TryParseAttribute(String, String, String, String) méthode.
S’applique à
TryParseAttribute(String, String, String, SyndicationItem, String)
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationItem .
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.SyndicationItem item, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationItem * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, item As SyndicationItem, version As String) As Boolean
Paramètres
- name
- String
Le nom de l’élément.
- ns
- String
Espace de noms de l’élément.
- value
- String
Attribut à analyser.
- item
- SyndicationItem
Instance SyndicationItem à utiliser.
- version
- String
Version de syndication à utiliser lors de l’analyse.
Retours
Valeur qui indique si l’attribut a été analysé avec succès.
Remarques
Pour contrôler la façon dont les extensions d’attribut sont analysées, dérivez votre propre classe et SyndicationItem remplacez la TryParseAttribute(String, String, String, String) méthode.
S’applique à
TryParseAttribute(String, String, String, SyndicationCategory, String)
Tente d’analyser une extension d’attribut à l’aide de l’instance spécifiée SyndicationCategory .
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.SyndicationCategory category, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationCategory * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, category As SyndicationCategory, version As String) As Boolean
Paramètres
- name
- String
Le nom de l’élément.
- ns
- String
Espace de noms de l’élément.
- value
- String
Attribut à analyser.
- category
- SyndicationCategory
Instance SyndicationCategory à utiliser.
- version
- String
Version de syndication à utiliser lors de l’analyse.
Retours
Valeur qui indique si l’attribut a été analysé avec succès.
Remarques
Pour contrôler la façon dont les extensions d’attribut sont analysées, dérivez votre propre classe et SyndicationCategory remplacez la TryParseAttribute(String, String, String, String) méthode.