AccessControlList.SetAccessControlEntry Method
Sets the provided AccessControlEntry in this AccessControlList.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Function SetAccessControlEntry ( _
accessControlEntry As AccessControlEntry, _
merge As Boolean _
) As AccessControlEntry
public AccessControlEntry SetAccessControlEntry(
AccessControlEntry accessControlEntry,
bool merge
)
public:
AccessControlEntry^ SetAccessControlEntry(
AccessControlEntry^ accessControlEntry,
bool merge
)
member SetAccessControlEntry :
accessControlEntry:AccessControlEntry *
merge:bool -> AccessControlEntry
public function SetAccessControlEntry(
accessControlEntry : AccessControlEntry,
merge : boolean
) : AccessControlEntry
Parameters
accessControlEntry
Type: Microsoft.TeamFoundation.Framework.Client.AccessControlEntryThe AccessControlEntry to set in the AccessControlList.
merge
Type: System.BooleanIf 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.AccessControlEntry
The new or updated AccessControlEntry that was set in the AccessControlList.
.NET Framework Security
- 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.