InternalXmlHelper.CreateAttribute(XName, Object) Method
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 an XML attribute that has the supplied name and value. This method is not intended to be used from your code.
public:
static System::Xml::Linq::XAttribute ^ CreateAttribute(System::Xml::Linq::XName ^ name, System::Object ^ value);
public static System.Xml.Linq.XAttribute CreateAttribute(System.Xml.Linq.XName name, object value);
static member CreateAttribute : System.Xml.Linq.XName * obj -> System.Xml.Linq.XAttribute
Public Shared Function CreateAttribute (name As XName, value As Object) As XAttribute
- 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
.
An XAttribute object that has the supplied name and value.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: