1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<Type Name="XmlAttribute" FullName="System.Xml.XmlAttribute">
<TypeSignature Maintainer="auto" Language="C#" Value="public class XmlAttribute : System.Xml.XmlNode" />
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>To be added</ThreadSafetyStatement>
<Docs>
<summary>An Xml node that is an element attribute.</summary>
<remarks>
<para>Attributes are contained in the <see cref="P:System.Xml.XmlNode.Attributes" /> property of element nodes. In the Xml below, "attribute" is an attribute of the "example" element.</para>
<code lang="xml"><example attribute="value"/></code>
<example>
<para>The following example shows how an attribute is programmatically added into an Xml document.</para>
<code lang="C#">
using System;
using System.Xml;
class MainClass {
public static void Main(string[] args) {
Console.WriteLine("Hello World!");
DomDemo();
}
public static void DomDemo() {
XmlDocument doc=new XmlDocument();
doc.LoadXml("<root />");
XmlAttribute a=doc.CreateAttribute("Foo");
a.Value="Bar";
doc.DocumentElement.Attributes.Append(a);
Console.Out.WriteLine(doc.OuterXml);
}
}
</code>
</example>
</remarks>
</Docs>
<Base>
<BaseTypeName>System.Xml.XmlNode</BaseTypeName>
</Base>
<Interfaces>
</Interfaces>
<Members>
<Member MemberName="Specified">
<MemberSignature Language="C#" Value="public virtual bool Specified { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added</summary>
<value>To be added: an object of type 'bool'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OwnerElement">
<MemberSignature Language="C#" Value="public virtual System.Xml.XmlElement OwnerElement { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Xml.XmlElement</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added</summary>
<value>To be added: an object of type 'XmlElement'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="BaseURI">
<MemberSignature Language="C#" Value="public override string BaseURI { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>ReadOnly property for getting the Base URI for the Attribute.</summary>
<returns>The location from which the attribute was loaded. If the location is empty (for example, was created in memory), <see cref="F:System.String.Empty" /> is returned.</returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>
|