Udostępnij za pośrednictwem


IVsSearchProvider.CreateSearch Method

Definition

Creates a search task from the specified cookie and search query.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(System::UInt32 dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchProviderCallback ^ pSearchCallback);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsSearchTask ^ CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery ^ pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchProviderCallback ^ pSearchCallback);
Microsoft::VisualStudio::Shell::Interop::IVsSearchTask CreateSearch(unsigned int dwCookie, Microsoft::VisualStudio::Shell::Interop::IVsSearchQuery const & pSearchQuery, Microsoft::VisualStudio::Shell::Interop::IVsSearchProviderCallback const & pSearchCallback);
public Microsoft.VisualStudio.Shell.Interop.IVsSearchTask CreateSearch (uint dwCookie, Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery pSearchQuery, Microsoft.VisualStudio.Shell.Interop.IVsSearchProviderCallback pSearchCallback);
abstract member CreateSearch : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery * Microsoft.VisualStudio.Shell.Interop.IVsSearchProviderCallback -> Microsoft.VisualStudio.Shell.Interop.IVsSearchTask
Public Function CreateSearch (dwCookie As UInteger, pSearchQuery As IVsSearchQuery, pSearchCallback As IVsSearchProviderCallback) As IVsSearchTask

Parameters

dwCookie
UInt32

[in] The cookie that identifies the search task.

pSearchQuery
IVsSearchQuery

[in] The search query against which the search task should operate.

pSearchCallback
IVsSearchProviderCallback

[in] A callback to report search progress.

Returns

An IVsSearchTask that identifies the search task.

Applies to