다음을 통해 공유


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

‘선언
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

  • 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

See Also

Reference

SecurityNamespace Class

Microsoft.TeamFoundation.Framework.Client Namespace