This documentation is archived and is not being maintained.
SecurityNamespace::RemovePermissions Method
Visual Studio 2013
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::AccessControlEntryThe updated AccessControlEntry after the permissions have been removed.
Returns an empty AccessControlEntry if no AccessControlEntry is associated with the specified identity descriptor.
- 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.
Show: