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

TE2000 | HMI Engineering · 0 次阅读

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.