ISecurityChangedEventHandler.SetPermissions Method

Allows the implementer to override, block or listen for SetPermissions calls.

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

Syntax

'Declaration
Function SetPermissions ( _
    requestContext As TeamFoundationRequestContext, _
    notificationType As NotificationType, _
    token As String, _
    entries As IEnumerable(Of AccessControlEntry), _
    merge As Boolean _
) As Boolean
bool SetPermissions(
    TeamFoundationRequestContext requestContext,
    NotificationType notificationType,
    string token,
    IEnumerable<AccessControlEntry> entries,
    bool merge
)
bool SetPermissions(
    TeamFoundationRequestContext^ requestContext, 
    NotificationType notificationType, 
    String^ token, 
    IEnumerable<AccessControlEntry^>^ entries, 
    bool merge
)
abstract SetPermissions : 
        requestContext:TeamFoundationRequestContext * 
        notificationType:NotificationType * 
        token:string * 
        entries:IEnumerable<AccessControlEntry> * 
        merge:bool -> bool
function SetPermissions(
    requestContext : TeamFoundationRequestContext, 
    notificationType : NotificationType, 
    token : String, 
    entries : IEnumerable<AccessControlEntry>, 
    merge : boolean
) : boolean

Parameters

  • token
    Type: System.String

    The token whose ACL these permissions should be set on.

  • merge
    Type: System.Boolean

    If true and a permission already exists for the identity, the permissions will be merged with the newer permissions taking precedence.

Return Value

Type: System.Boolean
True if the operation should continue in the security namespace this notification is coming from.

.NET Framework Security

See Also

Reference

ISecurityChangedEventHandler Interface

Microsoft.TeamFoundation.Framework.Server Namespace