This documentation is archived and is not being maintained.
SecurityNamespace::SetPermissions Method
Visual Studio 2013
Sets the permissions for the specified identity descriptor in this SecurityNamespace.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public: virtual AccessControlEntry^ SetPermissions( String^ token, IdentityDescriptor^ descriptor, int allow, int deny, bool merge ) abstract
Parameters
- token
- Type: System::String
The token that is associated with the AccessControlList on which to set the permissions.
- descriptor
- Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor
The identity descriptor for which to set the permissions.
- allow
- Type: System::Int32
The allowed permissions to set.
- deny
- Type: System::Int32
The denied permissions to set.
- merge
- Type: System::Boolean
True to merge the specified permissions with existing permissions for the specified identity descriptor. False to set the permissions as specified.
Return Value
Type: Microsoft.TeamFoundation.Framework.Client::AccessControlEntryThe new or updated AccessControlEntry that was set in the SecurityNamespace.
- 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: