Share 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; otherwise, the whole access control list will be removed (this includes all its related access control entries).

If recurse is true, all children access control lists will also be deleted. In addition, if recurse is true, it will be assumed that we are deleting complete access control lists, not just entries in the list.

Namespace:  Microsoft.TeamFoundation.Framework.Server.WebServices
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.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 underneath 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.Framework.Server.WebServices Namespace