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.

[Visual Basic]
Public Shared ReadOnly Property CurrentContext As Context
[C#]
public static Context CurrentContext {get;}
[C++]
public: __property static Context* get_CurrentContext();
[JScript]
public static function get CurrentContext() : Context;

Property Value

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

Exceptions

Exception Type Condition
SecurityException The caller does not have the required permission.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Thread Class | Thread Members | System.Threading Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft