Share via


VsSearchTask(UInt32, IVsSearchQuery, IVsSearchCallback) Constructor

Definition

Constructor

public:
 VsSearchTask(System::UInt32 dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
public:
 VsSearchTask(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
 VsSearchTask(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery const & pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback const & pSearchCallback);
public VsSearchTask (uint dwCookie, Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery pSearchQuery, Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback pSearchCallback);
new Microsoft.VisualStudio.Shell.VsSearchTask : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery * Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback -> Microsoft.VisualStudio.Shell.VsSearchTask
Public Sub New (dwCookie As UInteger, pSearchQuery As IVsSearchQuery, pSearchCallback As IVsSearchCallback)

Parameters

dwCookie
UInt32

Cookie, a task identifier

pSearchQuery
IVsSearchQuery

The search query used by the search task

pSearchCallback
IVsSearchCallback

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

Remarks

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.

Applies to