VsSearchTask Class
Base class for implementing search tasks used by search-able tool windows.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Microsoft.VisualStudio.Shell.VsSearchTask
Microsoft.VisualStudio.PlatformUI.DelegateSearchTask
| Name | Description | |
|---|---|---|
![]() | VsSearchTask(UInt32, IVsSearchQuery, IVsSearchCallback) | Initializes a new instance of the VsSearchTask class. |
| Name | Description | |
|---|---|---|
![]() | ErrorCode | Gets or sets the error code describing the search result if the search task has completed with errors. If the task completes without errors, this property is set to zero (0). |
![]() | Id | Gets the search task identifier. The task identifier is the cookie passed in the VsSearchTask constructor when the task was created. |
![]() | SearchCallback | Gets the callback interface that needs to be called when the search is complete. |
![]() | SearchQuery | Gets the search query used by the search task. |
![]() | SearchResults | Gets or sets the number of search results found. Set this value appropriately as the search progresses. |
![]() | TaskStatus | Gets the status of the current search. This property is set to appropriate values as the search progresses. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnStartSearch() | Called on background threads when the search is started. Override to do task-specific search. |
![]() | OnStopSearch() | Called on the UI thread when the search is stopped. Override to do task-specific stop actions. |
![]() | SetTaskStatus(VSConstants.VsSearchTaskStatus) | Helper function to set the task status. |
![]() | Start() | Starts the search task. |
![]() | Stop() | Stops the search task. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



