CSDiscretionaryAccessControlListAddAccess Method (CSDiscretionaryAccessControlEntry) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Adds access for a trustee with a certain type, flags and access mask. To remove access with the same type and flags for a trustee, pass an CSDiscretionaryAccessControlEntry with the CSObjectPermissions.None access mask. To completely remove all access for a trustee, use the RevokeAccess method.

Namespace: ContentStudio.Security.AccessControlEdit
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void AddAccess(
	CSDiscretionaryAccessControlEntry ace
)

Parameters

ace
Type: ContentStudio.Security.AccessControlEditCSDiscretionaryAccessControlEntry
A CSDiscretionaryAccessControlEntry instance that specifies the entry to add. This object cannot be marked as being inherited.
Exceptions

ExceptionCondition
InvalidOperationExceptionThe Ace specifies an inherited Ace.
Remarks

If a item for the same trustee with the same type and flags already exists the entries will be merged together. If the access specifies no access the entry will be ignored and any compatible entry will be removed.
See Also

Reference