InternalXmlHelper.CreateNamespaceAttribute(XName, XNamespace) Metodo

Definizione

Crea un attributo XML con il nome e il valore dello spazio dei nomi specificati. Questo metodo non deve essere usato 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.

Valori restituiti

Oggetto XAttribute con il nome e il valore dello spazio dei nomi specificati.

Si applica a

Vedi anche