About security attribute data types
- Last UpdatedFeb 08, 2025
- 2 minute read
All security attributes operate in the MyViewApp.Security namespace. The names of security attributes are specified with the prefix MyViewApp.Security in the form MyViewApp.Security.attribute_name.
|
Attribute Name |
Data Type |
Attribute Type |
Initial Value |
Retentive |
Description |
|---|---|---|---|---|---|
|
AutoLogon CurrentUser |
Boolean |
Read/ Write |
True |
True |
Returns true or false to indicate if users can log on automatically to a ViewApp with their Windows credentials. |
|
AutoLogOff |
Boolean |
Read/ Write |
False |
True |
Returns true or false to indicate if a user will be logged off after a period of inactivity. When set to true, the user is logged off from the ViewApp when the inactivity period is exceeded. |
|
AutoLogOff TimeSpan |
Integer |
Read /Write |
600 |
True |
Specifies the length of the inactivity period in seconds a logged in user is allowed. |
|
AutoLogOff Remaining Time |
Integer |
Read Only |
0 |
False |
Returns the remaining length of a user's inactivity period in seconds. |
|
Last Successful Login |
DateTime |
Read Only |
1/1/1601 12:01:01.000 AM |
True |
UTC timestamp of the most recent successful log in to a ViewApp. When no user is currently logged on to a running ViewApp, LastSuccessfulLogin shows 01/01/0001 00:00:00 as the timestamp. |
|
LoggedIn |
Boolean |
Read Only |
False |
False |
Returns True or False to indicate if a user is currently logged into a ViewApp or not. |
|
LoggedInAccess Level |
Integer |
Read Only |
No initial value |
False |
Integer value of the Access Level of the security role assigned to the user logged in to a ViewApp. When no user is currently logged in to a running ViewApp, such as after an AutoLogOff, LoggedInAccessLevel returns -1. |
|
LoggedInUser Name |
String |
Read Only |
No initial value |
False |
Returns the user name specified by the user to log in to a Viewapp. |
|
LoggedInUser Roles |
String |
Read Only |
No initial value |
False |
Returns the security roles assigned to the logged-in user in CSV format. |
|
ShowLoginDialogAsTopMost |
Boolean |
Read Only |
False |
False |
Specifies if the login dialog for the ViewApp will be shown as the topmost window on the screen. |