Thread.CurrentContext Property


Gets the current context in which the thread is executing.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

static member CurrentContext : Context with get

Property Value

Type: System.Runtime.Remoting.Contexts.Context

A System.Runtime.Remoting.Contexts.Context representing the current thread context.

Exception Condition

The caller does not have the required permission.


Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 1.1
Return to top