System.Xml.XmlDocument.CreateDefaultAttribute Method

Creates a default attribute with the specified prefix, local name and namespace URI.

Syntax

protected virtual XmlAttribute CreateDefaultAttribute (string prefix, string localName, string namespaceURI)

Parameters

prefix
The prefix of the attribute (if any).
localName
The local name of the attribute.
namespaceURI
The namespace URI of the attribute (if any).

Returns

The new System.Xml.XmlAttribute.

Remarks

This method is a Microsoft extension to the Document Object Model (DOM).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0