DispatcherProvider.SetCurrent(IDispatcherProvider) 方法

定义

设置当前的调度程序提供程序。

public:
 static bool SetCurrent(Microsoft::Maui::Dispatching::IDispatcherProvider ^ provider);
public static bool SetCurrent (Microsoft.Maui.Dispatching.IDispatcherProvider? provider);
static member SetCurrent : Microsoft.Maui.Dispatching.IDispatcherProvider -> bool
Public Shared Function SetCurrent (provider As IDispatcherProvider) As Boolean

参数

provider
IDispatcherProvider

IDispatcherProvider 设置为当前调度程序提供程序的对象。

返回

true if the current dispatcher was actually updated, otherwise false.

适用于