Share via


TeamFoundationSecurityNamespace.HasPermission Method (TeamFoundationRequestContext, String, Int32, Boolean, PermissionEvaluationCallback)

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

Syntax

'Declaration
Public Function HasPermission ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean, _
    permissionEvaluationCallback As PermissionEvaluationCallback _
) As Boolean
public bool HasPermission(
    TeamFoundationRequestContext requestContext,
    string token,
    int requestedPermissions,
    bool alwaysAllowAdministrators,
    PermissionEvaluationCallback permissionEvaluationCallback
)
public:
bool HasPermission(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    int requestedPermissions, 
    bool alwaysAllowAdministrators, 
    PermissionEvaluationCallback^ permissionEvaluationCallback
)
member HasPermission : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        requestedPermissions:int * 
        alwaysAllowAdministrators:bool * 
        permissionEvaluationCallback:PermissionEvaluationCallback -> bool 
public function HasPermission(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    requestedPermissions : int, 
    alwaysAllowAdministrators : boolean, 
    permissionEvaluationCallback : PermissionEvaluationCallback
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

HasPermission Overload

Microsoft.TeamFoundation.Framework.Server Namespace