Thread::CurrentContext Property
.NET Framework (current version)
Gets the current context in which the thread is executing.
Assembly: mscorlib (in mscorlib.dll)
public: property Context^ CurrentContext { [SecurityCriticalAttribute] static Context^ get(); }
Property Value
Type: System.Runtime.Remoting.Contexts::Context^A System.Runtime.Remoting.Contexts::Context representing the current thread context.
| Exception | Condition |
|---|---|
| SecurityException | The caller does not have the required permission. |
SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
.NET Framework
Available since 1.1
Available since 1.1
Show: