This documentation is archived and is not being maintained.
AccessControlList::SetPermissions Method
Visual Studio 2013
Sets a permission for the descriptor on this AccessControlList.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public: AccessControlEntry^ SetPermissions( IdentityDescriptor^ descriptor, int allow, int deny, bool merge )
Parameters
- descriptor
- Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor
The descriptor to set the permissions for.
- allow
- Type: System::Int32
The allowed permissions to set.
- deny
- Type: System::Int32
The denied permissions to set.
- merge
- Type: System::Boolean
If merge is true and a preexisting AccessControlEntry for the descriptor is found the two AccessControlEntries will be merged. When merging permissions in AccessControlEntries, if there is a conflict, the new permissions will take precedence over the old permissions. If merge is false and a preexisting AccessControlEntry for the descriptor is found it will be dropped and the passed in AccessControlEntry will be the only AccessControlEntry that remains for this descriptor on this AccessControlList.
Return Value
Type: Microsoft.TeamFoundation.Framework.Client::AccessControlEntryThe new or updated AccessControlEnty that was set in the AccessControlList.
- 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.
Show: