Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Thread::CurrentContext Property

 

Gets the current context in which the thread is executing.

Namespace:   System.Threading
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
Return to top
Show:
© 2017 Microsoft