Share via


TeamFoundationSecurityNamespace.RemovePermissions Method

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 performed 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 Function RemovePermissions ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    descriptor As IdentityDescriptor, _
    permissionsToRemove As Integer _
) As AccessControlEntry
public AccessControlEntry RemovePermissions(
    TeamFoundationRequestContext requestContext,
    string token,
    IdentityDescriptor descriptor,
    int permissionsToRemove
)
public:
AccessControlEntry^ RemovePermissions(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IdentityDescriptor^ descriptor, 
    int permissionsToRemove
)
member RemovePermissions : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptor:IdentityDescriptor * 
        permissionsToRemove:int -> AccessControlEntry
public function RemovePermissions(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    descriptor : IdentityDescriptor, 
    permissionsToRemove : int
) : AccessControlEntry

Parameters

  • token
    Type: System.String

    The token for the AccessControlList to remove the permissions from.

  • permissionsToRemove
    Type: System.Int32

    The permission bits to remove.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The updated AccessControlEntry after you remove the permissions.

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

Microsoft.TeamFoundation.Framework.Server Namespace