This documentation is archived and is not being maintained.

SecurityNamespace::SetPermissions Method

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::AccessControlEntry
The new or updated AccessControlEntry that was set in the SecurityNamespace.

Show: