Share via


XmlDictionary.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 die Zeichenfolge zurzeit nicht im Wörterbuch vorhanden ist.

TryLookup(Int32, XmlDictionaryString)

Source:
XmlDictionary.cs
Source:
XmlDictionary.cs
Source:
XmlDictionary.cs

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

public:
 virtual bool TryLookup(int key, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public virtual bool TryLookup (int key, out System.Xml.XmlDictionaryString result);
public virtual bool TryLookup (int key, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : int * XmlDictionaryString -> bool
override this.TryLookup : int * XmlDictionaryString -> bool
Public Overridable 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.

Implementiert

Gilt für:

TryLookup(String, XmlDictionaryString)

Source:
XmlDictionary.cs
Source:
XmlDictionary.cs
Source:
XmlDictionary.cs

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

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);
public virtual bool TryLookup (string value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : string * XmlDictionaryString -> bool
override this.TryLookup : string * XmlDictionaryString -> bool
Public Overridable 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.

Implementiert

Ausnahmen

value ist null.

Gilt für:

TryLookup(XmlDictionaryString, XmlDictionaryString)

Source:
XmlDictionary.cs
Source:
XmlDictionary.cs
Source:
XmlDictionary.cs

Überprüft das Wörterbuch auf eine bestimmte 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);
public virtual bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
override this.TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
Public Overridable 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.

Implementiert

Ausnahmen

value ist null.

Gilt für: