CurrentUser Property

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.CurrentUser

Data Type

User

Purpose

Specifies the user who is currently logged in.

Remarks

Use this property to obtain or set the User object for the user who is currently logged in. If no one is currently logged in, this property returns a NULL dispatch pointer or object reference. After you obtain the User object, call the User.HasPrivilege method to determine whether the user or a user group of which the user is a member has a specific privilege. If you set the property to 0 or NULL, you log out the current user.

If you are developing an application that uses the TestStand User Interface (UI) Controls, use the ApplicationMgr.Login method to change the current user to ensure that the Application Manager control properly sends an event to a user interface.


See Also

ApplicationMgr.Login

Engine.CurrentUserHasPrivilege

User

User.HasPrivilege

WAS THIS ARTICLE HELPFUL?

Not Helpful