Partager via


SecurityWebService.RemoveAccessControlList Method

Removes an access control list from the system if it is present. If the access control list data contains entries, only those entries will be removed, if it doesn't, the whole access control list will be removed (this includes all of its related access control entries). If recurse is true, all children access control lists will be deleted as well. Also, if recurse is true, it will be assumed that we are deleting entire access control lists, not just entries within the list.

Namespace:  Microsoft.TeamFoundation.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function RemoveAccessControlList ( _
    namespaceId As Guid, _
    tokens As List(Of String), _
    recurse As Boolean _
) As Boolean
[WebMethodAttribute]
public bool RemoveAccessControlList(
    Guid namespaceId,
    List<string> tokens,
    bool recurse
)
[WebMethodAttribute]
public:
bool RemoveAccessControlList(
    Guid namespaceId, 
    List<String^>^ tokens, 
    bool recurse
)
[<WebMethodAttribute>]
member RemoveAccessControlList : 
        namespaceId:Guid * 
        tokens:List<string> * 
        recurse:bool -> bool
public function RemoveAccessControlList(
    namespaceId : Guid, 
    tokens : List<String>, 
    recurse : boolean
) : boolean

Parameters

  • namespaceId
    Type: System.Guid

    The namespace to make these changes in.

  • recurse
    Type: System.Boolean

    If true, all access control lists below the specified access control lists

Return Value

Type: System.Boolean
True if something was removed

.NET Framework Security

See Also

Reference

SecurityWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace