Partager via


TeamFoundationSecurityNamespace.SetAccessControlLists Method (TeamFoundationRequestContext, IEnumerable<AccessControlList>, Boolean)

Sets the AccessControlLists specified in the SecurityNamespace. Setting an AccessControlList will always overwrite an existing AccessControlList if one exists.

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

Syntax

'Declaration
Public Sub SetAccessControlLists ( _
    requestContext As TeamFoundationRequestContext, _
    accessControlLists As IEnumerable(Of AccessControlList), _
    throwOnInvalidIdentity As Boolean _
)
public void SetAccessControlLists(
    TeamFoundationRequestContext requestContext,
    IEnumerable<AccessControlList> accessControlLists,
    bool throwOnInvalidIdentity
)
public:
void SetAccessControlLists(
    TeamFoundationRequestContext^ requestContext, 
    IEnumerable<AccessControlList^>^ accessControlLists, 
    bool throwOnInvalidIdentity
)
member SetAccessControlLists : 
        requestContext:TeamFoundationRequestContext * 
        accessControlLists:IEnumerable<AccessControlList> * 
        throwOnInvalidIdentity:bool -> unit
public function SetAccessControlLists(
    requestContext : TeamFoundationRequestContext, 
    accessControlLists : IEnumerable<AccessControlList>, 
    throwOnInvalidIdentity : boolean
)

Parameters

  • 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.

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

SetAccessControlLists Overload

Microsoft.TeamFoundation.Framework.Server Namespace