Removes the specified permission bits from the existing allows and denys for this descriptor. If no existing AccessControlEntry is found for this descriptor then nothing is done and an empty AccessControlList is returned. This function will not throw an exception if either the token or descriptor cannot be found.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function RemovePermissions ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    descriptor As IdentityDescriptor, _
    permissionsToRemove As Integer _
) As AccessControlEntry
public virtual AccessControlEntry RemovePermissions(
    TeamFoundationRequestContext requestContext,
    string token,
    IdentityDescriptor descriptor,
    int permissionsToRemove
)
public:
virtual AccessControlEntry^ RemovePermissions(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IdentityDescriptor^ descriptor, 
    int permissionsToRemove
)
abstract RemovePermissions : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptor:IdentityDescriptor * 
        permissionsToRemove:int -> AccessControlEntry  
override RemovePermissions : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptor:IdentityDescriptor * 
        permissionsToRemove:int -> AccessControlEntry
public function RemovePermissions(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    descriptor : IdentityDescriptor, 
    permissionsToRemove : int
) : AccessControlEntry
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The context for the current request. 
- token 
 Type: System.String- The token for the AccessControlList to remove the permissions from. 
- descriptor 
 Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor- The descriptor to remove the permissions for. 
- permissionsToRemove 
 Type: System.Int32- The permission bits to remove. 
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The updated AccessControlEntry after removing the permissions.
.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.