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
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.
.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.