Partager via


TeamFoundationRequestContext.CreateImpersonationContext Method (TeamFoundationServiceHost, IdentityDescriptor)

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Déclaration
Public Function CreateImpersonationContext ( _
    serviceHost As TeamFoundationServiceHost, _
    identity As IdentityDescriptor _
) As TeamFoundationRequestContext
public TeamFoundationRequestContext CreateImpersonationContext(
    TeamFoundationServiceHost serviceHost,
    IdentityDescriptor identity
)
public:
TeamFoundationRequestContext^ CreateImpersonationContext(
    TeamFoundationServiceHost^ serviceHost, 
    IdentityDescriptor^ identity
)
member CreateImpersonationContext : 
        serviceHost:TeamFoundationServiceHost * 
        identity:IdentityDescriptor -> TeamFoundationRequestContext 
public function CreateImpersonationContext(
    serviceHost : TeamFoundationServiceHost, 
    identity : IdentityDescriptor
) : TeamFoundationRequestContext

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

CreateImpersonationContext Overload

Microsoft.TeamFoundation.Framework.Server Namespace