Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the main thread that can be shared by tasks created by this context.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public ReadOnly Property MainThread As Thread
public Thread MainThread { get; }
public:
property Thread^ MainThread {
Thread^ get ();
}
member MainThread : Thread with get
function get MainThread () : Thread
Property Value
Type: System.Threading.Thread
Returns Thread.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.