ITcHmiSrvExtHostSetConfigValue Method
ITcHmiSrvExtHost.SetConfigValue is obsolete. Use ITcHmiSrvExtAsyncHost.ReplaceConfigValue instead.
Tries to add a Value to a map or vector in the configuration of the TwinCAT HMI server extension or update an existing configuration Value. Since the configuration Value is set asynchronously, you cannot rely on the Value really being set after this method returned. Therefore, you must verify this by using OnChange or calling GetConfigValue(Context, String).
Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in
TcHmiSrvExtNet.Core.dll) Version:
3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9
Syntax
C#
[ObsoleteAttribute("ITcHmiSrvExtHost.SetConfigValue is obsolete. Use ITcHmiSrvExtAsyncHost.ReplaceConfigValue instead.")]
ErrorValue SetConfigValue(
Context context,
string path,
Value value
)Parameters
|
context Context |
A Context that contains information about the user who tries to set the configuration Value. |
|
path String |
The path of the configuration Value to set. |
|
value Value |
The configuration Value to set. |
Return Value
ErrorValue
HMI_SUCCESS
if starting an asynchronous operation to set the configuration
Value
succeeded; otherwise, any ErrorValue that best
describes which error has occurred.
Version Information
Obsolete (compiler warning) in 1.10.7447.0
Reference
ITcHmiSrvExtHost Interface TcHmiSrv.Core Namespace
Copyright © Beckhoff Automation GmbH & Co. KG