IXmlDictionary.TryLookup Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Pokusí se vyhledat položku ve slovníku.
Přetížení
| Name | Description |
|---|---|
| TryLookup(Int32, XmlDictionaryString) |
Pokusí se vyhledat položku ve slovníku. |
| TryLookup(String, XmlDictionaryString) |
Zkontroluje slovník pro zadanou řetězcovou hodnotu. |
| TryLookup(XmlDictionaryString, XmlDictionaryString) |
Zkontroluje zadaný slovník XmlDictionaryString. |
Poznámky
Tato metoda zabraňuje vyvolání výjimky, pokud položka není aktuálně ve slovníku.
TryLookup(Int32, XmlDictionaryString)
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
Pokusí se vyhledat položku ve slovníku.
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
Parametry
- key
- Int32
Klíč k vyhledání.
- result
- XmlDictionaryString
Je-li key definován, XmlDictionaryString je namapován na klíč; jinak null.
Návraty
truepokud je klíč ve slovníku; v opačném případě . false
Platí pro
TryLookup(String, XmlDictionaryString)
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
Zkontroluje slovník pro zadanou řetězcovou hodnotu.
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
Parametry
- value
- String
Řetězcová hodnota, pro kterou se kontroluje.
- result
- XmlDictionaryString
Odpovídající XmlDictionaryString, je-li nalezen; v opačném případě null.
Návraty
truepokud je hodnota ve slovníku; v opačném případě . false
Platí pro
TryLookup(XmlDictionaryString, XmlDictionaryString)
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
- Zdroj:
- IXmlDictionary.cs
Zkontroluje zadaný slovník 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
Parametry
- value
- XmlDictionaryString
Kontrola XmlDictionaryString .
- result
- XmlDictionaryString
Shoda XmlDictionaryString, pokud byla nalezena; nullv opačném případě .
Návraty
true je-li XmlDictionaryString ve slovníku; jinak, false.