This documentation is archived and is not being maintained.

SecurityNamespace::RemovePermissions Method

Removes the specified permissions from the existing permissions for the specified identity descriptor. If no existing AccessControlEntry is found for this descriptor, no action is taken and an empty AccessControlList is returned.

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

public:
virtual AccessControlEntry^ RemovePermissions(
	String^ token, 
	IdentityDescriptor^ descriptor, 
	int permissionsToRemove
) abstract

Parameters

token
Type: System::String

The token that is associated with the AccessControlList from which to remove the specified permissions.

descriptor
Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor

The identity descriptor for which to remove the specified permissions.

permissionsToRemove
Type: System::Int32

The permissions to remove.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client::AccessControlEntry
The updated AccessControlEntry after the permissions have been removed.
Returns an empty AccessControlEntry if no AccessControlEntry is associated with the specified identity descriptor.

Show: