Sets the provided AccessControlEntries in this SecurityNamespace.
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, _
    throwOnInvalidIdentity As Boolean _
) As IEnumerable(Of AccessControlEntry)
public virtual IEnumerable<AccessControlEntry> SetAccessControlEntries(
    TeamFoundationRequestContext requestContext,
    string token,
    IEnumerable<AccessControlEntry> accessControlEntries,
    bool merge,
    bool throwOnInvalidIdentity
)
public:
virtual IEnumerable<AccessControlEntry^>^ SetAccessControlEntries(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IEnumerable<AccessControlEntry^>^ accessControlEntries, 
    bool merge, 
    bool throwOnInvalidIdentity
)
abstract SetAccessControlEntries : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        accessControlEntries:IEnumerable<AccessControlEntry> * 
        merge:bool * 
        throwOnInvalidIdentity:bool -> IEnumerable<AccessControlEntry> 
override SetAccessControlEntries : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        accessControlEntries:IEnumerable<AccessControlEntry> * 
        merge:bool * 
        throwOnInvalidIdentity:bool -> IEnumerable<AccessControlEntry> 
public function SetAccessControlEntries(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    accessControlEntries : IEnumerable<AccessControlEntry>, 
    merge : boolean, 
    throwOnInvalidIdentity : boolean
) : IEnumerable<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 AccessControlEntry on. 
- accessControlEntries 
 Type: System.Collections.Generic.IEnumerable<AccessControlEntry>- The AccessControlEntries to set in the SecurityNamespace. 
- 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. 
- throwOnInvalidIdentity 
 Type: System.Boolean- If an ace is encountered with a reference to an invalid identity this controls whether the method throws or just removes the identities. 
Return Value
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
The new or updated AccessControlEntires that were 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.
See Also
Reference
TeamFoundationSecurityNamespace Class