Location: Symbol Reference > Classes > TJwDiscretionaryAccessControlEntryDeny Class > Create Constructor > TJwDiscretionaryAccessControlEntryDeny.Create Constructor (TJwSecurityAccessControlList, TJwAceFlags, TJwAccessMask, TJwSecurityId, boolean)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwDiscretionaryAccessControlEntryDeny.Create Constructor (TJwSecurityAccessControlList, TJwAceFlags, TJwAccessMask, TJwSecurityId, boolean)
Pascal
constructor Create(const aListOwner: TJwSecurityAccessControlList; const aFlags: TJwAceFlags; const anAccessMask: TJwAccessMask; const aSID: TJwSecurityId; ownSID: boolean = True); overload;
Parameters 
Description 
const aListOwner: TJwSecurityAccessControlList 
retrieves the list owner (including nil). If it is set to a list (not nil) the ACE is added to the list automatically.  
const aFlags: TJwAceFlags 
retrieves the ACE flags as a set  
const anAccessMask: TJwAccessMask 
retrieves the access mask like GENERIC_ALL  
const aSID: TJwSecurityId 
retrieves the SID to be allowed or denied. It can be nil  
ownSID: boolean = True 
defines whether the SID given in parameter aSID should be freed automatically. If this SID is a well known SID from unit JwsclKnownSid this parameter is ignored 

Create creates a new negative ACE. 

 

The given SID in parameter aSID must not be already assigned to another access control instance if both - this and the other instance - have the boolean parameter ownSID (or its property OwnSid) set to true. In this case the first ACE instance may destroy the used SID instance and which has an effect on the second ACE instance that runs with an invalid SID instance. 

If you want to copy (even with changed values) an instance, use the copy constructor instead. If you also want to set the aListOwner parameter, simply add the new instance to the target list. 

TJwDiscretionaryAccessControlEntryDeny 

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!