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 {
	[SecurityCriticalAttribute]
	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
Return to top
Show: