Прочетете на английски Редактиране

Споделяне чрез


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.

C#
public bool TryLookup(int key, out System.Xml.XmlDictionaryString result);
C#
public bool TryLookup(int key, out System.Xml.XmlDictionaryString? result);

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

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

TryLookup(String, XmlDictionaryString)

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

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

C#
public bool TryLookup(string value, out System.Xml.XmlDictionaryString result);
C#
public bool TryLookup(string value, out System.Xml.XmlDictionaryString? result);

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

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

TryLookup(XmlDictionaryString, XmlDictionaryString)

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

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

C#
public bool TryLookup(System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString result);
C#
public bool TryLookup(System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString? result);

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

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0