Share via


XmlDocument.CreateAttribute(String) Method

Definition

Creates a new attribute with the specified name.

public:
 virtual XmlAttribute ^ CreateAttribute(Platform::String ^ name) = CreateAttribute;
XmlAttribute CreateAttribute(winrt::hstring const& name);
public XmlAttribute CreateAttribute(string name);
function createAttribute(name)
Public Function CreateAttribute (name As String) As XmlAttribute

Parameters

name
String

Platform::String

winrt::hstring

The name of the new attribute object. This name is subsequently available as the new node's NodeName property.

Returns

The newly created attribute.

Applies to