UserLock API
Public Member Functions | List of all members
ProtectedAccount Class Reference

Protected account allowing to define logon rules for a user or a group/organizational unit of users. Most properties and methods are implemented in the base class ProtectedAccountBase. More...

Inheritance diagram for ProtectedAccount:
ProtectedAccountBase ProtectedAccountTemporary

Public Member Functions

bool CopyCfg (string idPaToCopyCfgFrom)
 Copy all configuration of the protected account identified by the parameter to the current instance. Note that account types can be different. More...
 
override void SetInfo ()
 Set/update all properties of the protected account to the server. More...
 
void SetInfo (AccountPropertyList _enumTabFlags)
 Set/update select groups of properties of the protected account to the server. See the enum AccountPropertyList. More...
 
void SetInfo (AccountPropertyList _enumTabFlags, bool transactAlreadyStarted)
 Set/update select groups of properties of the protected account to the server. See the enum AccountPropertyList. More...
 
string[] GetMembers ()
 Get all members of the protected group/OU. More...
 

Properties

Overridable properties.
virtual bool IsTemporary [get]
 True if this is a temporary protected user. False otherwise. More...
 
virtual string Identifier [get]
 Get the identifier of the protected account. More...
 

Additional Inherited Members

 Enumeration of state for settings that can be disabled, enabled or not configured. See DisplayWelcomeMessageNew and AllowClosePreviousNew properties. More...
 Enumeration of actions that can be done when allowed logon hours have expired for a user. See the property ExpirationActionNew. More...
 Enumeration of all groups of properties in the ProtectedAccount class allowing to get or set only selected properties. See the methods GetInfo and SetInfo of the class ProtectedAccount or the method GetProtectedAccount of the class UserLockServer. More...
 Enumeration of all complex effective restrictions (cannot be stored in ProtectedAccount fields because they need additional data). Specific to effective restrictions of an user account (not compatible with protected accounts). More...

Detailed Description

Protected account allowing to define logon rules for a user or a group/organizational unit of users. Most properties and methods are implemented in the base class ProtectedAccountBase.

Member Function Documentation

bool CopyCfg ( string  idPaToCopyCfgFrom)

Copy all configuration of the protected account identified by the parameter to the current instance. Note that account types can be different.

Parameters
idPaToCopyCfgFromIdentifier of the protected account to copy all configuration from. Note that account type can be different.
Returns
True if succeeded, False otherwise.
override void SetInfo ( )

Set/update all properties of the protected account to the server.

void SetInfo ( AccountPropertyList  _enumTabFlags)

Set/update select groups of properties of the protected account to the server. See the enum AccountPropertyList.

void SetInfo ( AccountPropertyList  _enumTabFlags,
bool  transactAlreadyStarted 
)

Set/update select groups of properties of the protected account to the server. See the enum AccountPropertyList.

string [] GetMembers ( )

Get all members of the protected group/OU.

Returns
Returns an array of strings with the full account name of all members.
Exceptions
System.Exception

Property Documentation

virtual bool IsTemporary
get

True if this is a temporary protected user. False otherwise.

virtual string Identifier
get

Get the identifier of the protected account.