Sets the permissions for the specified identity descriptor in this SecurityNamespace.
Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public MustOverride Function SetPermissions ( _
    token As String, _
    descriptor As IdentityDescriptor, _
    allow As Integer, _
    deny As Integer, _
    merge As Boolean _
) As AccessControlEntry
public abstract AccessControlEntry SetPermissions(
    string token,
    IdentityDescriptor descriptor,
    int allow,
    int deny,
    bool merge
)
public:
virtual AccessControlEntry^ SetPermissions(
    String^ token, 
    IdentityDescriptor^ descriptor, 
    int allow, 
    int deny, 
    bool merge
) abstract
abstract SetPermissions : 
        token:string * 
        descriptor:IdentityDescriptor * 
        allow:int * 
        deny:int * 
        merge:bool -> AccessControlEntry
public abstract function SetPermissions(
    token : String, 
    descriptor : IdentityDescriptor, 
    allow : int, 
    deny : int, 
    merge : boolean
) : AccessControlEntry
Parameters
- token 
 Type: System.String- The token that is associated with the AccessControlList on which to set the permissions. 
- descriptor 
 Type: Microsoft.TeamFoundation.Framework.Client.IdentityDescriptor- The identity descriptor for which to set the permissions. 
- allow 
 Type: System.Int32- The allowed permissions to set. 
- deny 
 Type: System.Int32- The denied permissions to set. 
- merge 
 Type: System.Boolean- True to merge the specified permissions with existing permissions for the specified identity descriptor. False to set the permissions as specified. 
Return Value
Type: Microsoft.TeamFoundation.Framework.Client.AccessControlEntry
The new or updated AccessControlEntry that was set in the SecurityNamespace.
.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.