Gets a reference to the currently running thread.
[Visual Basic] Public Shared ReadOnly Property CurrentThread As Thread [C#] public static Thread CurrentThread {get;} [C++] public: __property static Thread* get_CurrentThread(); [JScript] public static function get CurrentThread() : Thread;
The currently running Thread.
Exception Type | Condition |
---|---|
SecurityException | The caller does not have the appropriate SecurityPermission. |