TeamFoundationSecurityNamespace.SetAccessControlEntry Method
Sets the provided AccessControlEntry in this SecurityNamespace.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function SetAccessControlEntry ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
accessControlEntry As AccessControlEntry, _
merge As Boolean _
) As AccessControlEntry
public AccessControlEntry SetAccessControlEntry(
TeamFoundationRequestContext requestContext,
string token,
AccessControlEntry accessControlEntry,
bool merge
)
public:
AccessControlEntry^ SetAccessControlEntry(
TeamFoundationRequestContext^ requestContext,
String^ token,
AccessControlEntry^ accessControlEntry,
bool merge
)
member SetAccessControlEntry :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntry:AccessControlEntry *
merge:bool -> AccessControlEntry
public function SetAccessControlEntry(
requestContext : TeamFoundationRequestContext,
token : String,
accessControlEntry : AccessControlEntry,
merge : boolean
) : 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 permissions on.
accessControlEntry
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntryThe AccessControlEntry to set in the SecurityNamespace.
merge
Type: System.BooleanIf merge is true and a preexisting AccessControlEntry for the descriptor is found the two permissions will be merged. When merging permissions, 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 permissions will be the only permissions that remain for this descriptor on this AccessControlList.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.AccessControlEntry
The new or updated permission that was 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.