InternalXmlHelper.CreateNamespaceAttribute(XName, XNamespace) Metod

Definition

Skapar ett XML-attribut med angivet namn och namnområdesvärde. Den här metoden är inte avsedd att användas från koden.

public:
 static System::Xml::Linq::XAttribute ^ CreateNamespaceAttribute(System::Xml::Linq::XName ^ name, System::Xml::Linq::XNamespace ^ ns);
public static System.Xml.Linq.XAttribute CreateNamespaceAttribute(System.Xml.Linq.XName name, System.Xml.Linq.XNamespace ns);
static member CreateNamespaceAttribute : System.Xml.Linq.XName * System.Xml.Linq.XNamespace -> System.Xml.Linq.XAttribute
Public Shared Function CreateNamespaceAttribute (name As XName, ns As XNamespace) As XAttribute

Parametrar

name
XName

Namnet på XML-attributet som ska skapas.

ns
XNamespace

Det namnområdesvärde som ska tilldelas till det skapade XML-attributet.

Returer

Ett XAttribute objekt som har angivet namn och namnområdesvärde.

Gäller för

Se även