XmlNode.LocalName Propriété
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.
Obtient le nom local du nœud, en cas de substitution dans une classe dérivée.
public:
abstract property System::String ^ LocalName { System::String ^ get(); };
public abstract string LocalName { get; }
member this.LocalName : string
Public MustOverride ReadOnly Property LocalName As String
Valeur de propriété
Nom du nœud avec le préfixe supprimé. Par exemple, LocalName est un livre pour l’élément <bk :book>.
Le nom retourné dépend du NodeType nœud :
| Tapez. | Nom |
|---|---|
| Attribut | Nom local de l’attribut. |
| CDATA | section #cdata |
| Commentaire | #comment |
| Document | #document |
| DocumentFragment | fragment #document |
| DocumentType | Nom du type de document. |
| Élément | Nom local de l’élément. |
| Entité | Nom de l’entité. |
| EntityReference | Nom de l’entité référencée. |
| Notation | Nom de notation. |
| ProcessingInstruction | Cible de l’instruction de traitement. |
| Texte | #text |
| Espaces | #whitespace |
| SignificantWhitespace | #significant-blanc |
| XmlDeclaration | déclaration de #xml |
Remarques
Si le nœud n’a pas de préfixe, LocalName est identique à Name.