IXmlDictionary.TryLookup 方法

定義

嘗試查字典中的某條目。

多載

名稱 Description
TryLookup(Int32, XmlDictionaryString)

嘗試查字典中的某條目。

TryLookup(String, XmlDictionaryString)

檢查字典中指定的字串值。

TryLookup(XmlDictionaryString, XmlDictionaryString)

檢查字典中指定的 XmlDictionaryString

備註

此方法避免在該條目目前不在字典中時拋出例外。

TryLookup(Int32, XmlDictionaryString)

來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs

嘗試查字典中的某條目。

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

參數

key
Int32

要查資料。

result
XmlDictionaryString

key 定義,則 XmlDictionaryString 映射為鍵;否則 null

傳回

true如果 key 在字典中;否則,。 false

適用於

TryLookup(String, XmlDictionaryString)

來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs

檢查字典中指定的字串值。

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

參數

value
String

正在檢查字串值。

result
XmlDictionaryString

對應 XmlDictionaryString的 若找到,則為 null

傳回

true若 value 在字典中;否則,。 false

適用於

TryLookup(XmlDictionaryString, XmlDictionaryString)

來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs
來源:
IXmlDictionary.cs

檢查字典中指定的 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

參數

value
XmlDictionaryString

XmlDictionaryString那個存在被檢查過。

result
XmlDictionaryString

若找到匹配 XmlDictionaryString,則為 null

傳回

trueXmlDictionaryString 在字典中;否則 。 false

適用於