Compartir a través de


TaskProvider.SuspendRefresh Method

Stops refreshing the task list until ResumeRefresh is called.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaración
Public Sub SuspendRefresh
'Uso
Dim instance As TaskProvider

instance.SuspendRefresh()
public void SuspendRefresh()
public:
void SuspendRefresh()
member SuspendRefresh : unit -> unit 
public function SuspendRefresh()

Remarks

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.

.NET Framework Security

See Also

Reference

TaskProvider Class

TaskProvider Members

Microsoft.VisualStudio.Shell Namespace