Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets a permission for the descriptor in this SecurityNamespace.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function SetPermissions ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    descriptor As IdentityDescriptor, _
    allow As Integer, _
    deny As Integer, _
    merge As Boolean _
) As AccessControlEntry
public virtual AccessControlEntry SetPermissions(
    TeamFoundationRequestContext requestContext,
    string token,
    IdentityDescriptor descriptor,
    int allow,
    int deny,
    bool merge
)
public:
virtual AccessControlEntry^ SetPermissions(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IdentityDescriptor^ descriptor, 
    int allow, 
    int deny, 
    bool merge
)
abstract SetPermissions : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptor:IdentityDescriptor * 
        allow:int * 
        deny:int * 
        merge:bool -> AccessControlEntry  
override SetPermissions : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        descriptor:IdentityDescriptor * 
        allow:int * 
        deny:int * 
        merge:bool -> AccessControlEntry
public function SetPermissions(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    descriptor : IdentityDescriptor, 
    allow : int, 
    deny : int, 
    merge : boolean
) : AccessControlEntry
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The context for the current request. 
- token 
 Type: System.String- The token for the AccessControlList to set the permissions on. 
- descriptor 
 Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor- The descriptor to set the permissions for. 
- allow 
 Type: System.Int32- The allowed permissions to set. 
- deny 
 Type: System.Int32- The denied permissions to set. 
- merge 
 Type: System.Boolean- If merge is true and a preexisting AccessControlEntry for the descriptor is found the two permissions will be merged. When merging permissions, if there is a conflict, the new permissions will take precedence over the old permissions. If merge is false and a preexisting AccessControlEntry for the descriptor is found it will be dropped and the passed in permissions will be the only permissions that remain for this descriptor on this AccessControlList. 
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The new or updated AccessControlEnty 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.