System.Xml.XmlUnspecifiedAttribute.CloneNode C# (CSharp) Méthode

CloneNode() public méthode

public CloneNode ( bool deep ) : XmlNode
deep bool
Résultat XmlNode
        public override XmlNode CloneNode(bool deep) {
            //CloneNode is deep for attributes irrespective of parameter
            XmlDocument doc = OwnerDocument;
            XmlUnspecifiedAttribute attr = (XmlUnspecifiedAttribute)doc.CreateDefaultAttribute(Prefix, LocalName, NamespaceURI);
            attr.CopyChildren( doc, this, true );
            attr.fSpecified = true; //When clone, should return the specifed attribute as default
            return attr;
        }