System.Xml.XmlElement.SetAttributeNode C# (CSharp) Méthode

SetAttributeNode() public méthode

public SetAttributeNode ( XmlAttribute newAttr ) : XmlAttribute
newAttr XmlAttribute
Résultat XmlAttribute
        public XmlAttribute SetAttributeNode(XmlAttribute newAttr)
        {
            return default(XmlAttribute);
        }

Usage Example

Exemple #1
0
 protected virtual XmlElement saveToFile(XmlDocument doc, XmlElement root)
 {
     XmlAttribute name = doc.CreateAttribute(PetriXmlHelper.XML_BASEITEM_NAMESPACE_PREFIX, "name", PetriXmlHelper.XML_BASEITEM_NAMESPACE);
     name.Value = this.name;
     root.SetAttributeNode(name);
     XmlAttribute unid = doc.CreateAttribute(PetriXmlHelper.XML_BASEITEM_NAMESPACE_PREFIX, "unid", PetriXmlHelper.XML_BASEITEM_NAMESPACE);
     unid.Value = this.unid.ToString();
     root.SetAttributeNode(unid);
     XmlAttribute showAnnotation = doc.CreateAttribute(PetriXmlHelper.XML_BASEITEM_NAMESPACE_PREFIX, "showannotation", PetriXmlHelper.XML_BASEITEM_NAMESPACE);
     showAnnotation.Value = this.showAnnotation.ToString();
     root.SetAttributeNode(showAnnotation);
     return root;
 }
All Usage Examples Of System.Xml.XmlElement::SetAttributeNode