Location: Symbol Reference > Classes > TJwPrivilegeSet Class > TJwPrivilegeSet Methods > AddPrivilege Method > TJwPrivilegeSet.AddPrivilege Method (TJwString)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwPrivilegeSet.AddPrivilege Method (TJwString)
Pascal
function AddPrivilege(PrivName: TJwString): integer; virtual; overload;
Parameters 
Description 
PrivName: TJwString 
contains the privilege name to be added 

AddPrivilege adds a privilege to the list if the privilege is not assigned to a token; otherwise EJwsclNotImplementedException will be raised. If the privilege already exists the exception EJwsclSecurityException will be raised. 

 

Exceptions 
Description 
will be raised if the privilege already exists 
will be raised if the privilege set belongs to a token 
will be raised if the privilege was not found on the system 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!