本文消除了与 TeamFoundationIdentity 请求上下文关联的授权的用户。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Function ReadRequestIdentity ( _
requestContext As TeamFoundationRequestContext, _
checkIdentityExistsInStore As Boolean _
) As TeamFoundationIdentity
public TeamFoundationIdentity ReadRequestIdentity(
TeamFoundationRequestContext requestContext,
bool checkIdentityExistsInStore
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
读取请求上下文。
- checkIdentityExistsInStore
类型:System.Boolean
如果为 true,则会导致引发如果标识存储区中不会发生 IdentityNotFoundException。
返回值
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationIdentity
经过授权的用户的 TeamFoundationIdentity。
实现
ITeamFoundationIdentityService.ReadRequestIdentity(TeamFoundationRequestContext, Boolean)
异常
异常 | 条件 |
---|---|
IdentityNotFoundException | 标识存储区中没有出现,或者无法解析时引发。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。