Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Impersonates the target identity on the current service host. The authenticated user will be the service account running the method.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function CreateImpersonationContext ( _
identity As IdentityDescriptor _
) As TeamFoundationRequestContext
public virtual TeamFoundationRequestContext CreateImpersonationContext(
IdentityDescriptor identity
)
public:
virtual TeamFoundationRequestContext^ CreateImpersonationContext(
IdentityDescriptor^ identity
)
abstract CreateImpersonationContext :
identity:IdentityDescriptor -> TeamFoundationRequestContext
override CreateImpersonationContext :
identity:IdentityDescriptor -> TeamFoundationRequestContext
public function CreateImpersonationContext(
identity : IdentityDescriptor
) : TeamFoundationRequestContext
Parameters
identity
Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptorThe identity to impersonate
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
A request context targeted at the current service host with the specified credentials
.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.