SecurityNamespace.SetPermissions Method

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

  • 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

See Also

Reference

SecurityNamespace Class

Microsoft.TeamFoundation.Framework.Client Namespace