This documentation is archived and is not being maintained.

AccessControlList::SetAccessControlEntries Method

Sets the provided AccessControlEntry in this AccessControlList.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public:
IEnumerable<AccessControlEntry^>^ SetAccessControlEntries(
	IEnumerable<AccessControlEntry^>^ accessControlEntries, 
	bool merge
)

Parameters

accessControlEntries
Type: System.Collections.Generic::IEnumerable<AccessControlEntry>

The AccessControlEntries to set in the SecurityNamespace.

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: System.Collections.Generic::IEnumerable<AccessControlEntry>
The new or updated permissions that were set in the AccessControlList.

Show: