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

XmlDictionary.TryLookup Method (Int32, XmlDictionaryString%)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Attempts to look up an entry in the dictionary.

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

public virtual bool TryLookup(
	int key,
	out XmlDictionaryString result
)

Parameters

key
Type: System.Int32
Key to look up.
result
Type: System.Xml.XmlDictionaryString %
If key is in the XmlDictionary, the XmlDictionaryString that is mapped to the key; otherwise, null.

Return Value

Type: System.Boolean
true if key is in the XML dictionary; otherwise, false.

Implements

IXmlDictionary.TryLookup(Int32, XmlDictionaryString)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft