Delen via


SecurityWebService.SetPermissions Method

Sets a permission for the identity in the system. If merge is specified and a preexisting entry is found the two permissions will be merged. When merging permissions, the new permissions will take precedence over the old permissions if there are conflicts in bits. Removing in this context refers to the removal of bits on permissions not the permissions themself. When removing any bits set in allow or deny will be removed.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function SetPermissions ( _
    namespaceId As Guid, _
    token As String, _
    accessControlEntries As List(Of AccessControlEntryDetails), _
    merge As Boolean _
) As List(Of AccessControlEntryDetails)
[WebMethodAttribute]
public List<AccessControlEntryDetails> SetPermissions(
    Guid namespaceId,
    string token,
    List<AccessControlEntryDetails> accessControlEntries,
    bool merge
)
[WebMethodAttribute]
public:
List<AccessControlEntryDetails^>^ SetPermissions(
    Guid namespaceId, 
    String^ token, 
    List<AccessControlEntryDetails^>^ accessControlEntries, 
    bool merge
)
[<WebMethodAttribute>]
member SetPermissions : 
        namespaceId:Guid * 
        token:string * 
        accessControlEntries:List<AccessControlEntryDetails> * 
        merge:bool -> List<AccessControlEntryDetails> 
public function SetPermissions(
    namespaceId : Guid, 
    token : String, 
    accessControlEntries : List<AccessControlEntryDetails>, 
    merge : boolean
) : List<AccessControlEntryDetails>

Parameters

  • namespaceId
    Type: System.Guid

    The namespace to make these changes in.

  • merge
    Type: System.Boolean

    True if permission bits should be merged.

Return Value

Type: System.Collections.Generic.List<AccessControlEntryDetails>

.NET Framework Security

See Also

Reference

SecurityWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace