共用方式為


IDispatcher.DispatchDelayed(TimeSpan, Action) Method

Definition

Schedules the provided action on the UI thread from a worker thread, taking into account the provided delay.

public:
 bool DispatchDelayed(TimeSpan delay, Action ^ action);
public bool DispatchDelayed (TimeSpan delay, Action action);
abstract member DispatchDelayed : TimeSpan * Action -> bool
Public Function DispatchDelayed (delay As TimeSpan, action As Action) As Boolean

Parameters

delay
TimeSpan

The delay taken into account before action is dispatched.

action
Action

The Action to be scheduled for processing on the UI thread.

Returns

true when the action has been dispatched successfully, otherwise false.

Applies to