TaskProvider.SuspendRefresh Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stops refreshing the task list until ResumeRefresh() is called.
public:
void SuspendRefresh();
public:
void SuspendRefresh();
void SuspendRefresh();
public void SuspendRefresh ();
member this.SuspendRefresh : unit -> unit
Public Sub SuspendRefresh ()
It is possible for suspensions and resumptions to be nested. By default every change to the task collection results in a call to Refresh, and the task list updates synchronously when it is called. Suspending the refreshing of the task list allows updates to be batched, which results in a cleaner UI experience. For example, refreshing a long task list on every change will cause the task list scrollbar to shrink and grow in a very visible way. Batching the changes decreases the visual noise.