Thread.CurrentContext Property

Gets the current context in which the thread is executing.

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

public static Context CurrentContext { get; }
/** @property */
public static Context get_CurrentContext ()

public static function get CurrentContext () : Context

Property Value

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

Exception typeCondition


The caller does not have the required permission.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0