XmlBinaryReaderSession.TryLookup Method (Int32, XmlDictionaryString%)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Checks whether the internal collection contains an entry with a specified key.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
'Declaration Public Function TryLookup ( _ key As Integer, _ <OutAttribute> ByRef result As XmlDictionaryString _ ) As Boolean
Parameters
- key
- Type: System.Int32
The key to match.
- result
- Type:
System.Xml.XmlDictionaryString
%
The XmlDictionaryString, if found; otherwise, Nothing.
Implements
IXmlDictionary.TryLookup(Int32, XmlDictionaryString)| Exception | Condition |
|---|---|
| ArgumentNullException | key is Nothing. |
Show: