TeamFoundationTeamService.HasTeamPermission 方法

确定用户是否具有此团队的指定的权限。

命名空间:  Microsoft.TeamFoundation.Server.Core
程序集:  Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)

语法

声明
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
)

参数

  • requestedPermissions
    类型:System.Int32
    如果为 true,则返回 true 为管理员。

返回值

类型:System.Boolean
如果用户拥有指定的权限,则为 true。

实现

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

.NET Framework 安全性

请参阅

参考

TeamFoundationTeamService 类

Microsoft.TeamFoundation.Server.Core 命名空间