Compartilhar via


IVsWindowSearch.CreateSearch Method

Definition

Creates a new search task object. The task is cold-started - Start() needs to be called on the task object to begin the search.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(System::UInt32 dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback ^ pSearchCallback);
Microsoft::VisualStudio::Shell::Interop::IVsSearchTask CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery const & pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchCallback const & pSearchCallback);
public 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
Public Function CreateSearch (dwCookie As UInteger, pSearchQuery As IVsSearchQuery, pSearchCallback As IVsSearchCallback) As IVsSearchTask

Parameters

dwCookie
UInt32

The search cookie.

pSearchQuery
IVsSearchQuery

The search query.

pSearchCallback
IVsSearchCallback

The search callback.

Returns

The search task.

Remarks

For an example, see Adding Search to a Tool Window.

Applies to