AccessControlList.SetPermissions Method
Sets a permission for the descriptor on this [AccessControlList].
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function SetPermissions ( _
descriptor As IdentityDescriptor, _
allow As Integer, _
deny As Integer, _
merge As Boolean _
) As AccessControlEntry
public virtual AccessControlEntry SetPermissions(
IdentityDescriptor descriptor,
int allow,
int deny,
bool merge
)
public:
virtual AccessControlEntry^ SetPermissions(
IdentityDescriptor^ descriptor,
int allow,
int deny,
bool merge
)
abstract SetPermissions :
descriptor:IdentityDescriptor *
allow:int *
deny:int *
merge:bool -> AccessControlEntry
override SetPermissions :
descriptor:IdentityDescriptor *
allow:int *
deny:int *
merge:bool -> AccessControlEntry
public function SetPermissions(
descriptor : IdentityDescriptor,
allow : int,
deny : int,
merge : boolean
) : AccessControlEntry
Parameters
descriptor
Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptorThe descriptor to set the permissions for.
allow
Type: System.Int32The allowed permissions to set.
deny
Type: System.Int32The denied permissions to set.
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.Server.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.