XmlDocument.CreateAttribute(String) 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.
Crée un attribut avec le nom spécifié.
public:
virtual XmlAttribute ^ CreateAttribute(Platform::String ^ name) = CreateAttribute;
XmlAttribute CreateAttribute(winrt::hstring const& name);
public XmlAttribute CreateAttribute(string name);
function createAttribute(name)
Public Function CreateAttribute (name As String) As XmlAttribute
Paramètres
- name
-
String
Platform::String
winrt::hstring
Nom du nouvel objet d’attribut. Ce nom est ensuite disponible en tant que propriété NodeName du nouveau nœud.
Retours
Attribut nouvellement créé.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour