Edytuj

Udostępnij za pośrednictwem


XmlBinaryReaderSession.TryLookup Method

Definition

Checks whether the internal collection contains an entry.

Overloads

TryLookup(Int32, XmlDictionaryString)

Checks whether the internal collection contains an entry matching a key.

TryLookup(String, XmlDictionaryString)

Checks whether the internal collection contains an entry matching a value.

TryLookup(XmlDictionaryString, XmlDictionaryString)

Checks whether the internal collection contains an entry matching a value.

TryLookup(Int32, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Checks whether the internal collection contains an entry matching a key.

public:
 virtual 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
override this.TryLookup : int * XmlDictionaryString -> bool
Public Function TryLookup (key As Integer, ByRef result As XmlDictionaryString) As Boolean

Parameters

key
Int32

The key to search on.

result
XmlDictionaryString

When this method returns, contains a string if an entry is found; otherwise, null. This parameter is passed uninitialized.

Returns

true if an entry matching the key was found; otherwise, false.

Implements

Exceptions

key is null.

Applies to

TryLookup(String, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Checks whether the internal collection contains an entry matching a value.

public:
 virtual 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
override this.TryLookup : string * XmlDictionaryString -> bool
Public Function TryLookup (value As String, ByRef result As XmlDictionaryString) As Boolean

Parameters

value
String

The value to search for.

result
XmlDictionaryString

When this method returns, contains a string if an entry is found; otherwise, null. This parameter is passed uninitialized.

Returns

true if an entry matching the value was found; otherwise, false.

Implements

Exceptions

value is null.

Applies to

TryLookup(XmlDictionaryString, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Checks whether the internal collection contains an entry matching a value.

public:
 virtual 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
override this.TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
Public Function TryLookup (value As XmlDictionaryString, ByRef result As XmlDictionaryString) As Boolean

Parameters

value
XmlDictionaryString

The value to search for.

result
XmlDictionaryString

When this method returns, contains a string if an entry is found; otherwise, null. This parameter is passed uninitialized.

Returns

true if an entry matching the value was found; otherwise, false.

Implements

Exceptions

value is null.

Applies to