Back to Devexpress

PresentationDictionary<TKey, TValue>.TryGetValue(TKey, out TValue) Method

officefileapi-devexpress-dot-docs-dot-presentation-dot-presentationdictionary-2-dot-trygetvalue-x28-0-1-x29.md

latest1.7 KB
Original Source

PresentationDictionary<TKey, TValue>.TryGetValue(TKey, out TValue) Method

Tries to get the value associated with the specified key.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public bool TryGetValue(
    TKey key,
    out TValue value
)
vb
Public Function TryGetValue(
    key As TKey,
    ByRef value As TValue
) As Boolean

Parameters

NameTypeDescription
keyTKey

The key of the value to get.

| | value | TValue |

The value associated with the specified key.

|

Returns

TypeDescription
Boolean

true if the dictionary contains an element with the specified key; otherwise, false.

|

Implements

TryGetValue(TKey, TValue)

See Also

PresentationDictionary<TKey, TValue> Class

PresentationDictionary<TKey, TValue> Members

DevExpress.Docs.Presentation Namespace