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.GuidThe namespace to make these changes in.
token
Type: System.StringThe token to set the permissions on.
accessControlEntries
Type: System.Collections.Generic.List<AccessControlEntryDetails>The permissions to set.
merge
Type: System.BooleanTrue if permission bits should be merged.
Return Value
Type: System.Collections.Generic.List<AccessControlEntryDetails>
.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.