This documentation is archived and is not being maintained.
ISecurityNamespaceExtension::HasPermission Method
Visual Studio 2013
This will be called every time that a permission decision is being made and allows the implementor to override the preliminary decision. Note, if a PermissionEvaluationCallback is provided to the function, it will override this decision.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
bool HasPermission( TeamFoundationRequestContext^ requestContext, String^ token, int requestedPermissions, int effectiveAllows, int effectiveDenys, bool preliminaryDecision )
Parameters
- requestContext
- Type: Microsoft.TeamFoundation.Framework.Server::TeamFoundationRequestContext
The request context we are evaluating permissions for.
- token
- Type: System::String
The token the permissions are currently being evaluated on.
- requestedPermissions
- Type: System::Int32
The permissions being requested.
- effectiveAllows
- Type: System::Int32
The granted permissions the securityNamespace evaluated for this user on this token.
- effectiveDenys
- Type: System::Int32
The permissions that were explicitly denied to the user due to a setting on the current token, a parent token or because of group membership.
- preliminaryDecision
- Type: System::Boolean
The answer we would provide if the callback were not used.
Return Value
Type: System::BooleanTrue if the user should have the permission, false otherwise.
This value will always trump the premilinaryDecision.
- 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.
Show: