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
- throwIfShutdown
Type: System.Boolean
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
A system request context targeted at the current service host.
.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.