XmlTextReader.Item[] Propriedade
Definição
Sobrecargas
| Item[Int32] |
Obtém o valor do atributo com o índice especificado.Gets the value of the attribute with the specified index. |
| Item[String] |
Obtém o valor do atributo com o nome especificado.Gets the value of the attribute with the specified name. |
| Item[String, String] |
Obtém o valor do atributo com o nome do local e o URI de namespace especificados.Gets the value of the attribute with the specified local name and namespace URI. |
Item[Int32]
Obtém o valor do atributo com o índice especificado.Gets the value of the attribute with the specified index.
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
O índice do atributo.The index of the attribute.
Valor da propriedade
O valor do atributo.The value of the attribute.
Aplica-se a
Item[String]
Obtém o valor do atributo com o nome especificado.Gets the value of the attribute with the specified name.
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
O nome qualificado do atributo.The qualified name of the attribute.
Valor da propriedade
O valor do atributo especificado.The value of the specified attribute. Se o atributo não for encontrado, retornará null .If the attribute is not found, returns null.
Comentários
Esta propriedade não move o leitor.This property does not move the reader.
Se o leitor estiver posicionado em um DocumentType nó, esse método poderá ser usado para obter os literais públicos e do sistema, por exemplo, reader["PUBLIC"] .If the reader is positioned on a DocumentType node, this method can be used to get the PUBLIC and SYSTEM literals, for example, reader["PUBLIC"].
Aplica-se a
Item[String, String]
Obtém o valor do atributo com o nome do local e o URI de namespace especificados.Gets the value of the attribute with the specified local name and namespace URI.
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
O nome local do atributo.The local name of the attribute.
- namespaceURI
- String
O URI do namespace do atributo.The namespace URI of the attribute.
Valor da propriedade
O valor do atributo especificado.The value of the specified attribute. Se o atributo não for encontrado, retornará null .If the attribute is not found, returns null.