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

XmlBinaryReaderSession.TryLookup Method (String, 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 string value.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public bool TryLookup(
	string value,
	out XmlDictionaryString result
)

Parameters

value
Type: System.String
The string value to match.
result
Type: System.Xml.XmlDictionaryString %
The XmlDictionaryString, if found; otherwise, null.

Return Value

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

Implements

IXmlDictionary.TryLookup(String, XmlDictionaryString)

ExceptionCondition
ArgumentNullException

value is null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft