Share via


TeamFoundationRequestContext.CreateImpersonationContext Method

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

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
A request context targeted at the current service host with the specified credentials.

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

Microsoft.TeamFoundation.Framework.Server Namespace