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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for the current request.
token
Type: System.StringThe token for the AccessControlList to remove the permissions from.
descriptor
Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptorThe descriptor to remove the permissions for.
permissionsToRemove
Type: System.Int32The permission bits to remove.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The updated AccessControlEntry after you remove 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.