CheckAccess

function CheckAccess(tco: TcHmi.Controls.System.baseTcHmiControl, AccessRightToCheck: string): boolean

The function CheckAccess checks whether the logged-in user has the right to access a control. Refer also to the description page for the corresponding API function.

Parameter

Name

Type

Description

tco

TcHmi.Controls.System.baseTcHmiControl

The control for which the right is to be checked.

AccessRightToCheck

string

The right that is to be checked.

Return value

Type

Description

boolean

Values:

  • true: The user has the right in question.
  • false: The user does not have the right in question.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

CheckAccess 1:

NuGet packages are available from version 1.12.

CheckAccess 2:

Available from 1.8