Thread::CurrentContext Property


Gets the current context in which the thread is executing.

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

property Context^ CurrentContext {
	static Context^ 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft