Search Task. Stop Method
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 the search task
public: virtual void Stop();
public: void Stop();
public void Stop ();
abstract member Stop : unit -> unit override this.Stop : unit -> unit
Public Sub Stop ()
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.