Share via


AccessControlList.RemovePermissions Method

Removes the specified permission bits from the existing allows and denys for this descriptor. If the descriptor is not found, nothing is done and an empty AccessControlEntry is returned.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function RemovePermissions ( _
    descriptor As IdentityDescriptor, _
    permissionsToRemove As Integer _
) As AccessControlEntry
public AccessControlEntry RemovePermissions(
    IdentityDescriptor descriptor,
    int permissionsToRemove
)
public:
AccessControlEntry^ RemovePermissions(
    IdentityDescriptor^ descriptor, 
    int permissionsToRemove
)
member RemovePermissions : 
        descriptor:IdentityDescriptor * 
        permissionsToRemove:int -> AccessControlEntry
public function RemovePermissions(
    descriptor : IdentityDescriptor, 
    permissionsToRemove : int
) : AccessControlEntry

Parameters

  • permissionsToRemove
    Type: System.Int32

    The permission bits to remove.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The updated AccessControlEntry with the permissions removed.

.NET Framework Security

See Also

Reference

AccessControlList Class

Microsoft.TeamFoundation.Framework.Server Namespace