Freigeben über


ITeamFoundationTeamService.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
Function HasTeamPermission ( _
    requestContext As TeamFoundationRequestContext, _
    team As TeamFoundationTeam, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean _
) As Boolean
bool HasTeamPermission(
    TeamFoundationRequestContext requestContext,
    TeamFoundationTeam team,
    int requestedPermissions,
    bool alwaysAllowAdministrators
)
bool HasTeamPermission(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationTeam^ team, 
    int requestedPermissions, 
    bool alwaysAllowAdministrators
)
abstract HasTeamPermission : 
        requestContext:TeamFoundationRequestContext * 
        team:TeamFoundationTeam * 
        requestedPermissions:int * 
        alwaysAllowAdministrators:bool -> bool
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.

.NET Framework Security

See Also

Reference

ITeamFoundationTeamService Interface

Microsoft.TeamFoundation.Server.Core Namespace