InternalXmlHelper.CreateAttribute(XName, Object) Método

Definição

Cria um atributo XML que tem o nome e valor fornecidos. Este método não foi concebido para ser usado a partir do seu código.

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

Parâmetros

name
XName

O nome do atributo XML a criar.

value
Object

O valor a atribuir ao atributo XML criado. Se value for Nothing, este método devolve Nothing.

Devoluções

Um XAttribute objeto que tenha o nome e valor fornecidos.

Aplica-se a

Ver também