CurrentContext Property

Thread.CurrentContext Property

Gets the current context in which the thread is executing.

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

Property Value

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


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


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

© 2015 Microsoft