XmlDictionary.TryLookup XmlDictionary.TryLookup XmlDictionary.TryLookup XmlDictionary.TryLookup Method

Definition

Attempts to look up an entry in the dictionary.

Overloads

TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString)

Attempts to look up an entry in the dictionary.

TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString)

Checks the dictionary for a specified string value.

TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString)

Checks the dictionary for a specified XmlDictionaryString.

Remarks

This method avoids throwing an exception if the string is not currently in the dictionary.

TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString)

Attempts to look up an entry in the dictionary.

public:
 virtual bool TryLookup(int key, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public virtual bool TryLookup (int key, out System.Xml.XmlDictionaryString result);
abstract member TryLookup : int *  -> bool
override this.TryLookup : int *  -> bool
Public Overridable Function TryLookup (key As Integer, ByRef result As XmlDictionaryString) As Boolean
Parameters
key
Int32 Int32 Int32 Int32

Key to look up.

result
XmlDictionaryString XmlDictionaryString XmlDictionaryString XmlDictionaryString

If key is defined, the XmlDictionaryString that is mapped to the key; otherwise null.

Returns

true if key is in the dictionary, otherwise false.

Implements

TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString)

Checks the dictionary for a specified string value.

public:
 virtual bool TryLookup(System::String ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public virtual bool TryLookup (string value, out System.Xml.XmlDictionaryString result);
abstract member TryLookup : string *  -> bool
override this.TryLookup : string *  -> bool
Public Overridable Function TryLookup (value As String, ByRef result As XmlDictionaryString) As Boolean
Parameters
value
String String String String

String value being checked for.

Returns

true if value is in the dictionary, otherwise false.

Implements
Exceptions

TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString)

Checks the dictionary for a specified XmlDictionaryString.

public:
 virtual bool TryLookup(System::Xml::XmlDictionaryString ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public virtual bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString result);
abstract member TryLookup : System.Xml.XmlDictionaryString *  -> bool
override this.TryLookup : System.Xml.XmlDictionaryString *  -> bool
Public Overridable Function TryLookup (value As XmlDictionaryString, ByRef result As XmlDictionaryString) As Boolean
Parameters
Returns

true if XmlDictionaryString is in the dictionary, otherwise false.

Implements
Exceptions

Applies to