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
If key
is defined, the XmlDictionaryString that is mapped to the key; otherwise null
.
Returns
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
The corresponding XmlDictionaryString, if found; otherwise null
.
Returns
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
The XmlDictionaryString being checked for.
The matching XmlDictionaryString, if found; otherwise, null
.
Returns
true
if XmlDictionaryString is in the dictionary; otherwise, false
.
Implements
Exceptions
Applies to
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...