TeamFoundationRequestContext.ThrowIfCanceled Method
Throws an exception if the current request has been canceled.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Sub ThrowIfCanceled
public virtual void ThrowIfCanceled()
public:
virtual void ThrowIfCanceled()
abstract ThrowIfCanceled : unit -> unit
override ThrowIfCanceled : unit -> unit
public function ThrowIfCanceled()
Exceptions
Exception | Condition |
---|---|
RequestCanceledException |
.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.