Value.TryGetValue Method

Gets the Value associated with the specified key.

Namespace:  TcHmiSrv
Assembly:  TcHmiSrvExtNet (in TcHmiSrvExtNet.dll) Version: 3.0.0.0

Syntax

C#

public bool TryGetValue(
    string key,
    out Value value
)

Parameters

key

Type: System.String
The key whose Value to get.

value

Type: TcHmiSrv.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 parameter. This parameter is passed uninitialized.

Return Value

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

Implements

IDictionary.TKey, TValue..TryGetValue(TKey, TValue.)
IReadOnlyDictionary.TKey, TValue..TryGetValue(TKey, TValue.)

Reference

Value Class

TcHmiSrv Namespace