Application.ExitThread 方法

定義

結束目前執行緒的訊息迴圈,並關閉執行緒上的所有視窗。Exits the message loop on the current thread and closes all windows on the thread.

public:
 static void ExitThread();
public static void ExitThread ();
static member ExitThread : unit -> unit
Public Shared Sub ExitThread ()

備註

您可以使用這個方法來結束目前線程的訊息迴圈。Use this method to exit the message loop of the current thread. 這個方法會讓目前線程的呼叫傳回 RunThis method causes the call to Run for the current thread to return. 若要結束整個應用程式,請呼叫 ExitTo exit the entire application, call Exit.

適用於

另請參閱