IDispatcherProvider.GetForCurrentThread 方法

定义

IDispatcher获取当前 UI 线程的实现。

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

返回

实现的 IDispatcher 实例。

适用于