XmlTextReader.Item[] Propiedad

Definición

Sobrecargas

Item[Int32]

Obtiene el valor del atributo con el índice especificado.

Item[String]

Obtiene el valor del atributo con el nombre especificado.

Item[String, String]

Obtiene el valor del atributo con el nombre local y el identificador URI de espacio de nombres que se hayan especificado.

Item[Int32]

Obtiene el valor del atributo con el índice especificado.

public:
 virtual property System::String ^ default[int] { System::String ^ get(int i); };
public override string this[int i] { get; }
member this.Item(int) : string
Default Public Overrides ReadOnly Property Item(i As Integer) As String

Parámetros

i
Int32

Índice del atributo.

Valor de propiedad

El valor del atributo.

Se aplica a

Item[String]

Obtiene el valor del atributo con el nombre especificado.

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ name); };
public override string this[string name] { get; }
member this.Item(string) : string
Default Public Overrides ReadOnly Property Item(name As String) As String

Parámetros

name
String

Nombre completo del atributo.

Valor de propiedad

Valor del atributo especificado. Si no se encuentra el atributo , devuelve null.

Comentarios

Esta propiedad no mueve el lector.

Si el lector se coloca en un DocumentType nodo, este método se puede usar para obtener los literales PUBLIC y SYSTEM, por ejemplo, reader["PUBLIC"].

Se aplica a

Item[String, String]

Obtiene el valor del atributo con el nombre local y el identificador URI de espacio de nombres que se hayan especificado.

public:
 virtual property System::String ^ default[System::String ^, System::String ^] { System::String ^ get(System::String ^ name, System::String ^ namespaceURI); };
public override string this[string name, string namespaceURI] { get; }
member this.Item(string * string) : string
Default Public Overrides ReadOnly Property Item(name As String, namespaceURI As String) As String

Parámetros

name
String

Nombre local del atributo.

namespaceURI
String

URI de espacio de nombres del atributo.

Valor de propiedad

Valor del atributo especificado. Si no se encuentra el atributo , devuelve null.

Se aplica a