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 performed 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
descriptor
Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptorThe descriptor to remove the permissions from.
permissionsToRemove
Type: System.Int32The permission bits to remove.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The updated [AccessControlEntry] with the permissions removed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.