TeamFoundationTeamService.HasTeamPermission Method

Determines whether or not a user has the specified permission on this team.

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

Syntax

'Declaration
Public Function HasTeamPermission ( _
    requestContext As TeamFoundationRequestContext, _
    team As TeamFoundationTeam, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean _
) As Boolean
public bool HasTeamPermission(
    TeamFoundationRequestContext requestContext,
    TeamFoundationTeam team,
    int requestedPermissions,
    bool alwaysAllowAdministrators
)
public:
virtual bool HasTeamPermission(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationTeam^ team, 
    int requestedPermissions, 
    bool alwaysAllowAdministrators
) sealed
abstract HasTeamPermission : 
        requestContext:TeamFoundationRequestContext * 
        team:TeamFoundationTeam * 
        requestedPermissions:int * 
        alwaysAllowAdministrators:bool -> bool  
override HasTeamPermission : 
        requestContext:TeamFoundationRequestContext * 
        team:TeamFoundationTeam * 
        requestedPermissions:int * 
        alwaysAllowAdministrators:bool -> bool
public final function HasTeamPermission(
    requestContext : TeamFoundationRequestContext, 
    team : TeamFoundationTeam, 
    requestedPermissions : int, 
    alwaysAllowAdministrators : boolean
) : boolean

Parameters

  • requestedPermissions
    Type: System.Int32

    If true, return true for administrators.

Return Value

Type: System.Boolean
True if the user has the specified permission.

Implements

ITeamFoundationTeamService.HasTeamPermission(TeamFoundationRequestContext, TeamFoundationTeam, Int32, Boolean)

.NET Framework Security

See Also

Reference

TeamFoundationTeamService Class

Microsoft.TeamFoundation.Server.Core Namespace