IXmlDictionary.TryLookup Metod

Definition

Försöker slå upp en post i ordlistan.

Överlagringar

Name Description
TryLookup(Int32, XmlDictionaryString)

Försöker slå upp en post i ordlistan.

TryLookup(String, XmlDictionaryString)

Söker i ordlistan efter ett angivet strängvärde.

TryLookup(XmlDictionaryString, XmlDictionaryString)

Söker i ordlistan efter en angiven XmlDictionaryString.

Kommentarer

Den här metoden undviker att utlösa ett undantag om posten för närvarande inte finns i ordlistan.

TryLookup(Int32, XmlDictionaryString)

Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs

Försöker slå upp en post i ordlistan.

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

Parametrar

key
Int32

Nyckel för att slå upp.

result
XmlDictionaryString

Om key har definierats mappas det XmlDictionaryString till nyckeln, annars null.

Returer

trueom nyckeln finns i ordlistan; annars . false

Gäller för

TryLookup(String, XmlDictionaryString)

Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs

Söker i ordlistan efter ett angivet strängvärde.

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

Parametrar

value
String

Strängvärde som söks efter.

result
XmlDictionaryString

Motsvarande XmlDictionaryString, om det hittas, annars . null

Returer

trueom värdet finns i ordlistan; annars . false

Gäller för

TryLookup(XmlDictionaryString, XmlDictionaryString)

Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs
Källa:
IXmlDictionary.cs

Söker i ordlistan efter en angiven 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

Parametrar

value
XmlDictionaryString

Den XmlDictionaryString som söks efter.

result
XmlDictionaryString

Matchande XmlDictionaryString, om det hittas, annars . null

Returer

true om XmlDictionaryString finns i ordlistan, annars false.

Gäller för