Share via


InternalXmlHelper.CreateNamespaceAttribute(XName, XNamespace) Metodo

Definizione

Crea un attributo XML con il valore e lo spazio dei nomi forniti. Questo metodo non è destinato a essere utilizzato dal codice.

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

Parametri

name
XName

Nome dell'attributo XML da creare.

ns
XNamespace

Valore dello spazio dei nomi da assegnare all'attributo XML creato.

Restituisce

Oggetto XAttribute con il nome e lo spazio dei nomi forniti.

Si applica a

Vedi anche