AccessControlList.RemovePermissions Method
Removes the specified permission bits from the existing allows and denys for this descriptor. If the descriptor is not found, nothing is done and an empty AccessControlEntry is returned.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Function RemovePermissions ( _
descriptor As IdentityDescriptor, _
permissionsToRemove As Integer _
) As AccessControlEntry
public AccessControlEntry RemovePermissions(
IdentityDescriptor descriptor,
int permissionsToRemove
)
public:
AccessControlEntry^ RemovePermissions(
IdentityDescriptor^ descriptor,
int permissionsToRemove
)
member RemovePermissions :
descriptor:IdentityDescriptor *
permissionsToRemove:int -> AccessControlEntry
public function RemovePermissions(
descriptor : IdentityDescriptor,
permissionsToRemove : int
) : AccessControlEntry
Parameters
descriptor
Type: Microsoft.TeamFoundation.Framework.Client.IdentityDescriptorThe descriptor to remove the permissions from.
permissionsToRemove
Type: System.Int32The permission bits to remove.
Return Value
Type: Microsoft.TeamFoundation.Framework.Client.AccessControlEntry
The updated AccessControlEntry with the permissions removed.
.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.