IXmlDictionary.TryLookup Methode

Definition

Es wurde versucht, einen Eintrag im Wörterbuch nachzuschlagen.

Überlädt

TryLookup(Int32, XmlDictionaryString)

Es wurde versucht, einen Eintrag im Wörterbuch nachzuschlagen.

TryLookup(String, XmlDictionaryString)

Überprüft das Wörterbuch auf einen bestimmten Zeichenfolgenwert.

TryLookup(XmlDictionaryString, XmlDictionaryString)

Überprüft das Wörterbuch auf eine bestimmte XmlDictionaryString.

Hinweise

Durch diese Methode wird vermieden, dass eine Ausnahme ausgelöst wird, wenn der Eintrag zurzeit nicht im Wörterbuch vorhanden ist.

TryLookup(Int32, XmlDictionaryString)

Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs

Es wurde versucht, einen Eintrag im Wörterbuch nachzuschlagen.

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

Parameter

key
Int32

Zu suchender Schlüssel.

result
XmlDictionaryString

Wenn key definiert ist, die dem Schlüssel zugeordnete XmlDictionaryString, andernfalls null.

Gibt zurück

true, wenn der Schlüssel im Wörterbuch vorhanden ist, andernfalls false.

Gilt für:

TryLookup(String, XmlDictionaryString)

Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs

Überprüft das Wörterbuch auf einen bestimmten Zeichenfolgenwert.

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

Parameter

value
String

Zeichenfolgenwert, auf den überprüft wird.

result
XmlDictionaryString

Die entsprechende XmlDictionaryString, wenn sie gefunden wird, andernfalls null.

Gibt zurück

true, wenn der Wert im Wörterbuch vorhanden ist, andernfalls false.

Gilt für:

TryLookup(XmlDictionaryString, XmlDictionaryString)

Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs
Source:
IXmlDictionary.cs

Überprüft das Wörterbuch auf eine bestimmte XmlDictionaryString.

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

Parameter

value
XmlDictionaryString

Die XmlDictionaryString, auf die überprüft wird.

result
XmlDictionaryString

Die passende XmlDictionaryString, wenn sie gefunden wird, andernfalls null.

Gibt zurück

true, wenn sich die XmlDictionaryString im Wörterbuch befindet, andernfalls false.

Gilt für: