IXmlDictionary.TryLookup Método
Definição
Tenta pesquisar uma entrada no dicionário.Attempts to look up an entry in the dictionary.
Sobrecargas
| TryLookup(Int32, XmlDictionaryString) |
Tenta pesquisar uma entrada no dicionário.Attempts to look up an entry in the dictionary. |
| TryLookup(String, XmlDictionaryString) |
Verifica o dicionário em busca de um valor de cadeia de caracteres especificado.Checks the dictionary for a specified string value. |
| TryLookup(XmlDictionaryString, XmlDictionaryString) |
Verifica o dicionário para um XmlDictionaryString especificado.Checks the dictionary for a specified XmlDictionaryString. |
Comentários
Esse método evita lançar uma exceção se a entrada não estiver atualmente no dicionário.This method avoids throwing an exception if the entry is not currently in the dictionary.
TryLookup(Int32, XmlDictionaryString)
Tenta pesquisar uma entrada no dicionário.Attempts to look up an entry in the dictionary.
public:
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
Public Function TryLookup (key As Integer, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- key
- Int32
Chave a ser procurada.Key to look up.
- result
- XmlDictionaryString
Se key for definida, o XmlDictionaryString mapeado para a chave; caso contrário null.If key is defined, the XmlDictionaryString that is mapped to the key; otherwise null.
Retornos
true se a chave estiver no dicionário; caso contrário, false.true if key is in the dictionary; otherwise, false.
Aplica-se a
TryLookup(String, XmlDictionaryString)
Verifica o dicionário em busca de um valor de cadeia de caracteres especificado.Checks the dictionary for a specified string value.
public:
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
Public Function TryLookup (value As String, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- value
- String
Valor da cadeia de caracteres que está sendo verificada.String value being checked for.
- result
- XmlDictionaryString
O XmlDictionaryString correspondente, se encontrado; caso contrário, null.The corresponding XmlDictionaryString, if found; otherwise, null.
Retornos
true se o valor estiver no dicionário; caso contrário, false.true if value is in the dictionary; otherwise, false.
Aplica-se a
TryLookup(XmlDictionaryString, XmlDictionaryString)
Verifica o dicionário para um XmlDictionaryString especificado.Checks the dictionary for a specified XmlDictionaryString.
public:
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
Public Function TryLookup (value As XmlDictionaryString, ByRef result As XmlDictionaryString) As Boolean
Parâmetros
- value
- XmlDictionaryString
O XmlDictionaryString que está sendo verificado.The XmlDictionaryString being checked for.
- result
- XmlDictionaryString
O XmlDictionaryString correspondente, se encontrado; caso contrário, null.The matching XmlDictionaryString, if found; otherwise, null.
Retornos
true se XmlDictionaryString estiver no dicionário; caso contrário, false.true if XmlDictionaryString is in the dictionary; otherwise, false.