TryLookup Method (Int32, XmlDictionaryString)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Xml
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.

Return Value

Type: System.Boolean
true if an entry that matches the key was found; otherwise, false.

Implements

IXmlDictionary.TryLookup(Int32, XmlDictionaryString)

ExceptionCondition
ArgumentNullException

key is Nothing.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft