NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlDocument.CreateAttribute (String)

Creates an XmlAttribute with the specified name.

[Visual Basic]
Overloads Overridable Public Function CreateAttribute( _
   ByVal name As String _
) As XmlAttribute
[C#]
public virtual XmlAttribute CreateAttribute(
   string name
);
[C++]
public: virtual XmlAttribute* CreateAttribute(
   String* name
);
[JScript]
public function CreateAttribute(
   name : String
) : XmlAttribute;

Parameters

name
Name of the attribute.

Return Value

The new XmlAttribute.

Remarks

The XmlAttribute instance can then be set on an Element using the SetAttributeNode method. To create an attribute with a qualified name and namespace URI, use the other CreateAttribute method.

See Also

XmlDocument Class | XmlDocument Members | System.NewXml Namespace | XmlDocument.CreateAttribute Overload List