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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context associated with this call.
notificationType
Type: Microsoft.TeamFoundation.Framework.Server.NotificationTypeThe type of notification that this is.
token
Type: System.StringThe token whose ACL these permissions should be set on.
entries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>The permissions to set in the system.
merge
Type: System.BooleanIf 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
- 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.