VsSearchTask Constructor (UInt32, IVsSearchQuery^, IVsSearchCallback^)

 

Initializes a new instance of the VsSearchTask class.

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

public:
VsSearchTask(
	unsigned int dwCookie,
	IVsSearchQuery^ pSearchQuery,
	IVsSearchCallback^ pSearchCallback
)

Parameters

dwCookie
Type: System::UInt32

Cookie with a task identifier.

pSearchQuery
Type: Microsoft.VisualStudio.Shell.Interop::IVsSearchQuery^

Search query used by the search task.

pSearchCallback
Type: Microsoft.VisualStudio.Shell.Interop::IVsSearchCallback^

Callback interface whose functions need to be called when the search task is complete or has made more progress.

The VsSearchTask class implements the IVsSearchTask interface and provides basic functionality for setting the search status when the search is in progress or completes. If you are implementing a search task derived from this class, you only need to override the OnStartSearch method to perform the actual search.

Return to top
Show: