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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context to be checked.
team
Type: Microsoft.TeamFoundation.Server.Core.TeamFoundationTeamThe permissions to check for.
requestedPermissions
Type: System.Int32If true, return true for administrators.
- alwaysAllowAdministrators
Type: System.Boolean
Return Value
Type: System.Boolean
True if the user has the specified permission.
Implements
.NET Framework Security
- 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.