Location: Symbol Reference > Classes > TJwSAccessControlList Class > TJwSAccessControlList Methods > TJwSAccessControlList.SetMandatoryLabel Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSAccessControlList.SetMandatoryLabel Method
Pascal
procedure SetMandatoryLabel(const NewLabel: TJwSystemMandatoryAccessControlEntry; const CopyFlag: TJwCopyFlag); virtual;
Parameters 
Description 
const NewLabel: TJwSystemMandatoryAccessControlEntry 
defines the new label instance. It is copied or direclty added to the list depending on parameter CopyFlag  
const CopyFlag: TJwCopyFlag 
defines how the new label is treated.
  • cfCopyInstance creates a new copy of the instance and adds it to the list. This is the default behavior if property MandatoryLabel is used. You should set OwnObjects to true so the new instance will be released when the SACL is freed.

  • cfPointAtInstance simply adds the given instance to the list. If OwnObjects is true the instance will also be freed.
 

SetMandatoryLabel removes, adds or replaces a mandatory label. 

  • If a label already exists in the SACL the new label will replace the old one.
  • If no label exists the label will be added to the list. There is no order in a system acl so do not depend on it.
  • If parameter NewLabel is nil the old label will be removed
 

Removing: The old label will be erased depending on how OwnObjects. If OwnObjects is true the old label instance will be freed otherwise it will just be removed from list. 

 

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!