XmlDocument.CreateAttribute(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.