共用方式為


DispatcherProvider.GetForCurrentThread 方法

定義

IDispatcher取得目前 UI 執行緒的實作。

public:
 virtual Microsoft::Maui::Dispatching::IDispatcher ^ GetForCurrentThread();
public Microsoft.Maui.Dispatching.IDispatcher? GetForCurrentThread ();
abstract member GetForCurrentThread : unit -> Microsoft.Maui.Dispatching.IDispatcher
override this.GetForCurrentThread : unit -> Microsoft.Maui.Dispatching.IDispatcher
Public Function GetForCurrentThread () As IDispatcher

傳回

實作的 IDispatcher 實例。

實作

適用於