Compartilhar via


JoinableTaskContext.MainThread Property

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 Property MainThread As Thread
public Thread MainThread { get; private set; }
public:
property Thread^ MainThread {
    Thread^ get ();
    private: void set (Thread^ value);
}
member MainThread : Thread with get, private set
function get MainThread () : Thread 
private function set MainThread (value : Thread)

Property Value

Type: System.Threading.Thread
Returns Thread.

.NET Framework Security

See Also

Reference

JoinableTaskContext Class

Microsoft.VisualStudio.Threading Namespace