共用方式為


VsSearchTask.Stop Method

Stops the search task.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Sub Stop
public void Stop()

Implements

IVsSearchTask.Stop()

Remarks

This method implements Stop and sets the task status to Stopped. If this is possible (that is, the search has not already completed or the task was not already stopped), the method calls OnStopSearch allowing derived classes to override it and perform specific stop actions. Ultimately, this method calls the search callback (identified by SearchCallback) to report completion with the number of search results (in SearchResults) set by the derived classes.

.NET Framework Security

See Also

Reference

VsSearchTask Class

Microsoft.VisualStudio.Shell Namespace