Infosys在阅读器中打开 / AI 翻译

TE2000 | HMI Engineering · 0 次阅读

Value.TryGetValue Method

Gets the Value associated with the specified key.

Namespace:  TcHmiSrv.Core
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public bool TryGetValue(
    string key,
    out Value value
)

Parameters

key

Type: System.String
The key of the Value to get.

value

Type: TcHmiSrv.Core.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

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