DispatcherProvider.SetCurrent(IDispatcherProvider) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置当前的调度程序提供程序。
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
.