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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.