Condividi tramite


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

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

Syntax

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<Boolean>

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

HasPermission Overload

Microsoft.TeamFoundation.Framework.Server Namespace