TeamFoundationRequestContext.CreateImpersonationContext Method (TeamFoundationServiceHost, IdentityDescriptor)
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaración
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
- serviceHost
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceHost
- identity
Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
.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.
See Also
Reference
TeamFoundationRequestContext Class