TfsConnection.GetAuthenticatedIdentity 方法
获取经过服务器身份验证的标识。
命名空间: Microsoft.TeamFoundation.Client
程序集: Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)
语法
声明
Public Sub GetAuthenticatedIdentity ( _
<OutAttribute> ByRef identity As TeamFoundationIdentity _
)
public void GetAuthenticatedIdentity(
out TeamFoundationIdentity identity
)
参数
- identity
类型:Microsoft.TeamFoundation.Framework.Client.TeamFoundationIdentity%
用来保存已检索标识的变量。
备注
When Team Foundation Server impersonation is used, the identity that is returned will be the identity that is performing the impersonation, not the user who is making the call. Therefore, the AuthorizedIdentity is usually the correct identity to use from this class.
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅 通过部分受信任的代码使用库。