InternalXmlHelper.CreateNamespaceAttribute(XName, XNamespace) Method

Definition

Creates an XML attribute that has the supplied name and namespace value. This method is not intended to be used from your code.

C#
public static System.Xml.Linq.XAttribute CreateNamespaceAttribute(System.Xml.Linq.XName name, System.Xml.Linq.XNamespace ns);

Parameters

name
XName

The name of the XML attribute to create.

ns
XNamespace

The namespace value to assign to the created XML attribute.

Returns

An XAttribute object that has the supplied name and namespace value.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also