ValueTryGetValue Method

Gets the Value associated with the specified key.


Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public bool TryGetValue(
    string key,
    out Value value
)

Parameters

key  String

The key of the Value to get.

value  Value

When this method returns, the Value associated with the specified key, if the key is found; otherwise, the default Value for the type of the value. This parameter is passed uninitialized.

Return Value

Boolean
true if the Value contains a Value with the specified key; otherwise, false.

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)
IReadOnlyDictionaryTKey, TValueTryGetValue(TKey, TValue)

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

Value Class TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG