Partager via


TeamFoundationRequestContext.Elevate Method (Boolean)

Returns a SystemRequestContext.

If the current context is a system context, it will return itself.

This RequestContext is managed by the owning context and should not be disposed after the caller is finished, this will be done when the root context is disposed.

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

Syntax

'Declaration
Public Overridable Function Elevate ( _
    throwIfShutdown As Boolean _
) As TeamFoundationRequestContext
public virtual TeamFoundationRequestContext Elevate(
    bool throwIfShutdown
)
public:
virtual TeamFoundationRequestContext^ Elevate(
    bool throwIfShutdown
)
abstract Elevate : 
        throwIfShutdown:bool -> TeamFoundationRequestContext  
override Elevate : 
        throwIfShutdown:bool -> TeamFoundationRequestContext
public function Elevate(
    throwIfShutdown : boolean
) : TeamFoundationRequestContext

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

Elevate Overload

Microsoft.TeamFoundation.Framework.Server Namespace