LogoutEx

function LogoutEx(ctx: Required<TcHmi.Context>, reload: boolean = true)

The function LogoutEx logs the current user out of the server. The function LogoutEx provides a context parameter of type TcHmi.Context, which allows the framework to wait for the asynchronous signaling of the end of the action when executing within triggers or function expressions.

Refer also to the description page for the corresponding API function.

Parameter

Name

Type

Description

ctx

Required<TcHmi.Context>

Context object

Does not need to be specified by the user when used in a trigger or function expression. In this case the transfer and the evaluation is done by the corresponding parser.

Is used by the caller to indicate success or failure to the framework during execution.

If the function is used directly in JavaScript/TypeScript, the context object must be passed in the call and evaluated if necessary.

reload [ optional ]

boolean

Defines whether a reload should take place after the logout.

The default value is true.

Return value

Type

Description

void

No return value.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

LogoutEx 1:

NuGet packages are available from version 1.12.

LogoutEx 2:

Available from version 1.12