TeamFoundationSecurityNamespace.SetAccessControlEntries Method (TeamFoundationRequestContext, String, IEnumerable<AccessControlEntry>, Boolean)
Sets the provided AccessControlEntries in this SecurityNamespace.
If invalid identities are supplied in this call, it will throw.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function SetAccessControlEntries ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
accessControlEntries As IEnumerable(Of AccessControlEntry), _
merge As Boolean _
) As IEnumerable(Of AccessControlEntry)
public virtual IEnumerable<AccessControlEntry> SetAccessControlEntries(
TeamFoundationRequestContext requestContext,
string token,
IEnumerable<AccessControlEntry> accessControlEntries,
bool merge
)
public:
virtual IEnumerable<AccessControlEntry^>^ SetAccessControlEntries(
TeamFoundationRequestContext^ requestContext,
String^ token,
IEnumerable<AccessControlEntry^>^ accessControlEntries,
bool merge
)
abstract SetAccessControlEntries :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntries:IEnumerable<AccessControlEntry> *
merge:bool -> IEnumerable<AccessControlEntry>
override SetAccessControlEntries :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntries:IEnumerable<AccessControlEntry> *
merge:bool -> IEnumerable<AccessControlEntry>
public function SetAccessControlEntries(
requestContext : TeamFoundationRequestContext,
token : String,
accessControlEntries : IEnumerable<AccessControlEntry>,
merge : boolean
) : IEnumerable<AccessControlEntry>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for the current request.
token
Type: System.StringThe token for the AccessControlList to set the AccessControlEntry on.
accessControlEntries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>The AccessControlEntries to set in the SecurityNamespace.
merge
Type: System.BooleanIf merge is true and a preexisting AccessControlEntry for the descriptor is found, the two AccessControlEntries will be merged. When merging AccessControlEntries, if there is a conflict in permissions, 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 remain for this descriptor on this AccessControlList.
Return Value
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
The new or updated AccessControlEntires that were set in the SecurityNamespace.
.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.
See Also
Reference
TeamFoundationSecurityNamespace Class