XmlBinaryReaderSession.TryLookup Método
Definição
Verifica se a coleção interna contém uma entrada.Checks whether the internal collection contains an entry.
Sobrecargas
| TryLookup(Int32, XmlDictionaryString) |
Verifica se a coleção interna contém uma entrada correspondente a uma chave.Checks whether the internal collection contains an entry matching a key. |
| TryLookup(String, XmlDictionaryString) |
Verifica se a coleção interna contém uma entrada correspondente a um valor.Checks whether the internal collection contains an entry matching a value. |
| TryLookup(XmlDictionaryString, XmlDictionaryString) |
Verifica se a coleção interna contém uma entrada correspondente a um valor.Checks whether the internal collection contains an entry matching a value. |
TryLookup(Int32, XmlDictionaryString)
Verifica se a coleção interna contém uma entrada correspondente a uma chave.Checks whether the internal collection contains an entry matching a key.
public:
virtual bool TryLookup(int key, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (int key, out System.Xml.XmlDictionaryString result);
public bool TryLookup (int key, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : int * XmlDictionaryString -> bool
override this.TryLookup : int * XmlDictionaryString -> bool
Public Function TryLookup (key As Integer, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- key
- Int32
A chave de pesquisa.The key to search on.
- result
- XmlDictionaryString
Quando este método retornar, ele conterá uma cadeia de caracteres se uma entrada for encontrada; caso contrário, null.When this method returns, contains a string if an entry is found; otherwise, null. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
Retornos
true se uma entrada correspondente a key foi encontrada; caso contrário, false.true if an entry matching the key was found; otherwise, false.
Implementações
Exceções
key é null.key is null.
Aplica-se a
TryLookup(String, XmlDictionaryString)
Verifica se a coleção interna contém uma entrada correspondente a um valor.Checks whether the internal collection contains an entry matching a value.
public:
virtual bool TryLookup(System::String ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (string value, out System.Xml.XmlDictionaryString result);
public bool TryLookup (string value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : string * XmlDictionaryString -> bool
override this.TryLookup : string * XmlDictionaryString -> bool
Public Function TryLookup (value As String, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- value
- String
O valor a ser procurado.The value to search for.
- result
- XmlDictionaryString
Quando este método retornar, ele conterá uma cadeia de caracteres se uma entrada for encontrada; caso contrário, null.When this method returns, contains a string if an entry is found; otherwise, null. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
Retornos
true se uma entrada correspondente a value foi encontrada; caso contrário, false.true if an entry matching the value was found; otherwise, false.
Implementações
Exceções
value é null.value is null.
Aplica-se a
TryLookup(XmlDictionaryString, XmlDictionaryString)
Verifica se a coleção interna contém uma entrada correspondente a um valor.Checks whether the internal collection contains an entry matching a value.
public:
virtual bool TryLookup(System::Xml::XmlDictionaryString ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString result);
public bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
override this.TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
Public Function TryLookup (value As XmlDictionaryString, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- value
- XmlDictionaryString
O valor a ser procurado.The value to search for.
- result
- XmlDictionaryString
Quando este método retornar, ele conterá uma cadeia de caracteres se uma entrada for encontrada; caso contrário, null.When this method returns, contains a string if an entry is found; otherwise, null. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
Retornos
true se uma entrada correspondente a value foi encontrada; caso contrário, false.true if an entry matching the value was found; otherwise, false.
Implementações
Exceções
value é null.value is null.