adTempus API
ArcanaDevelopment.adTempus.Client Namespace / SecurityDescriptor Class / ReplacePermissions Method
The SecurityEntity to replace permissions for.
The permissions to grant. Can be null if no changes are being made.
The permissions to deny. Can be null if no changes are being made.
The inheritance options to use.


In This Topic
    ReplacePermissions Method
    In This Topic
    Replaces the existing permissions for an entity with the specified permissions.
    Syntax

    Parameters

    entity
    The SecurityEntity to replace permissions for.
    grantPermissions
    The permissions to grant. Can be null if no changes are being made.
    denyPermissions
    The permissions to deny. Can be null if no changes are being made.
    inheritanceOptions
    The inheritance options to use.

    Return Value

    The new or updated AccessControlEntry reflecting the permissions.
    Remarks
    If the descriptor already contains an AccessControlEntry matching the entity and inheritanceOptions, that entry's permissions are replaced with the grantPermissions and denyPermissions. Otherwise a new AccessControlEntry is created with the specified settings and permissions.
    See Also