InternalXmlHelper.CreateAttribute(XName, Object) Method

Definition

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

C#
public static System.Xml.Linq.XAttribute CreateAttribute(System.Xml.Linq.XName name, object value);

Parameters

name
XName

The name of the XML attribute to create.

value
Object

The value to assign to the created XML attribute. If value is Nothing, this method returns Nothing.

Returns

An XAttribute object that has the supplied name and 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