次の方法で共有


IVsGlobalSearch.CreateSearch Method

Definition

Creates a search task for the available providers or a specific provider category.

public Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchTask CreateSearch (Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery pSearchQuery, Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchCallback pSearchCallback, Guid guidCategory);
abstract member CreateSearch : Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery * Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchCallback * Guid -> Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchTask
Public Function CreateSearch (pSearchQuery As IVsSearchQuery, pSearchCallback As IVsGlobalSearchCallback, Optional guidCategory As Guid) As IVsGlobalSearchTask

Parameters

pSearchQuery
IVsSearchQuery

[in] An IVsSearchQuery interface that contains the structured search string.

pSearchCallback
IVsGlobalSearchCallback

[in] The callback to be used to track progress of the search.

guidCategory
Guid

[in, optional] GUID that identifies the category of the search provider. Use GUID_NULL for this parameter to search across all providers.

Returns

The search task (IVsGlobalSearchTask) that was created.

Applies to