InternalXmlHelper.AttributeValue[] Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene o establece el valor de un atributo XML. Esta propiedad no está pensada para usarse desde el código.
Sobrecargas
| Nombre | Description |
|---|---|
| AttributeValue[IEnumerable<XElement>, XName] |
Obtiene o establece el valor de un atributo XML. Esta propiedad no está pensada para usarse desde el código. |
| AttributeValue[XElement, XName] |
Obtiene o establece el valor de un atributo XML. Esta propiedad no está pensada para usarse desde el código. |
AttributeValue[IEnumerable<XElement>, XName]
Obtiene o establece el valor de un atributo XML. Esta propiedad no está pensada para usarse desde el código.
public:
static property System::String ^ AttributeValue[System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^, System::Xml::Linq::XName ^] { System::String ^ get(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source, System::Xml::Linq::XName ^ name); void set(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source, System::Xml::Linq::XName ^ name, System::String ^ value); };
public static string AttributeValue[System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> source, System.Xml.Linq.XName name] { get; set; }
static member AttributeValue(seq<System.Xml.Linq.XElement> * System.Xml.Linq.XName) : string with get, set
Public Shared Property AttributeValue(source As IEnumerable(Of XElement), name As XName) As String
Parámetros
- source
- IEnumerable<XElement>
Colección de elementos XML para obtener un valor de atributo de o establecer un valor de atributo para.
- name
- XName
Nombre del atributo XML para el que se va a obtener un valor o establecer un valor para.
Valor de propiedad
Valor del atributo XML identificado por el name parámetro del primer elemento de la colección proporcionada de elementos XML. Si la colección está vacía, devuelve Nothing.
Consulte también
Se aplica a
AttributeValue[XElement, XName]
Obtiene o establece el valor de un atributo XML. Esta propiedad no está pensada para usarse desde el código.
public:
static property System::String ^ AttributeValue[System::Xml::Linq::XElement ^, System::Xml::Linq::XName ^] { System::String ^ get(System::Xml::Linq::XElement ^ source, System::Xml::Linq::XName ^ name); void set(System::Xml::Linq::XElement ^ source, System::Xml::Linq::XName ^ name, System::String ^ value); };
public static string AttributeValue[System.Xml.Linq.XElement source, System.Xml.Linq.XName name] { get; set; }
static member AttributeValue(System.Xml.Linq.XElement * System.Xml.Linq.XName) : string with get, set
Public Shared Property AttributeValue(source As XElement, name As XName) As String
Parámetros
- source
- XElement
Un elemento XML para obtener un valor de atributo de o establecer un valor de atributo para.
- name
- XName
Nombre del atributo XML para el que se va a obtener un valor o establecer un valor para.
Valor de propiedad
Valor del atributo XML identificado por el name parámetro en el elemento XML proporcionado.