IVsSearchTask Interface

Starts or stops a search operation.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

public interface IVsSearchTask

The IVsSearchTask type exposes the following members.

Public propertyErrorCodeGets the error code for the search (meaningful only if the search has encountered an error).
Public propertyIdGets the VSCOOKIE identifying the task.
Public propertySearchQueryGets the search query used when the search task was created.
Public propertyStatusGets the task status, with values from __VSSEARCHTASKSTATUS.

Public methodStartStarts the actual search. Search operations are always called on background threads.
Public methodStopStops a previously-started search (for example, the user clicked the X button during a long search).
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft