Delen via


TeamFoundationSecurityNamespace.SetAccessControlEntries Method (TeamFoundationRequestContext, String, IEnumerable<AccessControlEntry>, Boolean)

Sets the provided AccessControlEntries in this SecurityNamespace.

If invalid identities are supplied in this call, it will throw.

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

Syntax

'Declaration
Public Overridable Function SetAccessControlEntries ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    accessControlEntries As IEnumerable(Of AccessControlEntry), _
    merge As Boolean _
) As IEnumerable(Of AccessControlEntry)
public virtual IEnumerable<AccessControlEntry> SetAccessControlEntries(
    TeamFoundationRequestContext requestContext,
    string token,
    IEnumerable<AccessControlEntry> accessControlEntries,
    bool merge
)
public:
virtual IEnumerable<AccessControlEntry^>^ SetAccessControlEntries(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IEnumerable<AccessControlEntry^>^ accessControlEntries, 
    bool merge
)
abstract SetAccessControlEntries : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        accessControlEntries:IEnumerable<AccessControlEntry> * 
        merge:bool -> IEnumerable<AccessControlEntry> 
override SetAccessControlEntries : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        accessControlEntries:IEnumerable<AccessControlEntry> * 
        merge:bool -> IEnumerable<AccessControlEntry> 
public function SetAccessControlEntries(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    accessControlEntries : IEnumerable<AccessControlEntry>, 
    merge : boolean
) : IEnumerable<AccessControlEntry>

Parameters

  • token
    Type: System.String

    The token for the AccessControlList to set the AccessControlEntry on.

  • 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 AccessControlEntries, if there is a conflict in permissions, 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 remain for this descriptor on this AccessControlList.

Return Value

Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
The new or updated AccessControlEntires that were set in the SecurityNamespace.

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

SetAccessControlEntries Overload

Microsoft.TeamFoundation.Framework.Server Namespace