Partager via


AccessControlList.SetPermissions Method

Sets a permission for the descriptor on this AccessControlList.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function SetPermissions ( _
    descriptor As IdentityDescriptor, _
    allow As Integer, _
    deny As Integer, _
    merge As Boolean _
) As AccessControlEntry
public AccessControlEntry SetPermissions(
    IdentityDescriptor descriptor,
    int allow,
    int deny,
    bool merge
)
public:
AccessControlEntry^ SetPermissions(
    IdentityDescriptor^ descriptor, 
    int allow, 
    int deny, 
    bool merge
)
member SetPermissions : 
        descriptor:IdentityDescriptor * 
        allow:int * 
        deny:int * 
        merge:bool -> AccessControlEntry
public function SetPermissions(
    descriptor : IdentityDescriptor, 
    allow : int, 
    deny : int, 
    merge : boolean
) : AccessControlEntry

Parameters

  • merge
    Type: System.Boolean

    If merge is true and a preexisting AccessControlEntry for the descriptor is found the two AccessControlEntries will be merged. When merging permissions in AccessControlEntries, 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 AccessControlEntry will be the only AccessControlEntry that remains for this descriptor on this AccessControlList.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.AccessControlEntry
The new or updated AccessControlEnty that was set in the AccessControlList.

.NET Framework Security

See Also

Reference

AccessControlList Class

Microsoft.TeamFoundation.Framework.Client Namespace