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)
Syntax
'Declaración
Public MustOverride Function RemovePermissions ( _
token As String, _
descriptor As IdentityDescriptor, _
permissionsToRemove As Integer _
) As AccessControlEntry
public abstract AccessControlEntry RemovePermissions(
string token,
IdentityDescriptor descriptor,
int permissionsToRemove
)
public:
virtual AccessControlEntry^ RemovePermissions(
String^ token,
IdentityDescriptor^ descriptor,
int permissionsToRemove
) abstract
abstract RemovePermissions :
token:string *
descriptor:IdentityDescriptor *
permissionsToRemove:int -> AccessControlEntry
public abstract function RemovePermissions(
token : String,
descriptor : IdentityDescriptor,
permissionsToRemove : int
) : AccessControlEntry
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.
.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.