Share via


TeamFoundationRequestContext.CreateImpersonationContext 方法

模拟在当前服务托管的目标标识。 将为服务帐户运行此方法验证的用户。

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

语法

声明
Public Overridable Function CreateImpersonationContext ( _
    identity As IdentityDescriptor _
) As TeamFoundationRequestContext
public virtual TeamFoundationRequestContext CreateImpersonationContext(
    IdentityDescriptor identity
)

参数

返回值

类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
请求上下文中以具有指定的凭据的当前服务托管

.NET Framework 安全性

请参阅

参考

TeamFoundationRequestContext 类

Microsoft.TeamFoundation.Framework.Server 命名空间