ToolWindowPane.CreateSearch(UInt32, IVsSearchQuery, IVsSearchCallback) Method
Definition
Important
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.
Override at least this function if you need to support search in a toolwindow
public:
virtual Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(System::UInt32 dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
public:
virtual Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
virtual Microsoft::VisualStudio::Shell::Interop::IVsSearchTask CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery const & pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback const & pSearchCallback);
public virtual Microsoft.VisualStudio.Shell.Interop.IVsSearchTask CreateSearch (uint dwCookie, Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery pSearchQuery, Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback pSearchCallback);
abstract member CreateSearch : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery * Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback -> Microsoft.VisualStudio.Shell.Interop.IVsSearchTask
override this.CreateSearch : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery * Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback -> Microsoft.VisualStudio.Shell.Interop.IVsSearchTask
Public Overridable Function CreateSearch (dwCookie As UInteger, pSearchQuery As IVsSearchQuery, pSearchCallback As IVsSearchCallback) As IVsSearchTask
Parameters
- dwCookie
- UInt32
The cookie identifying the search
- pSearchQuery
- IVsSearchQuery
The search query
- pSearchCallback
- IVsSearchCallback
A callback interface whose functions need to be called when the search task is complete or has made more progress.
Returns
The search task created. The search begins when an explicit call to Start method on the task will be made.