This topic has not yet been rated - Rate this topic

SecurityNamespace.SetPermissions Method

Visual Studio 2010

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 abstract AccessControlEntry SetPermissions(
	string token,
	IdentityDescriptor descriptor,
	int allow,
	int deny,
	bool merge
)

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.AccessControlEntry
The new or updated AccessControlEntry that was set in the SecurityNamespace.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ