IVsGlobalSearch.CreateSearch Method
Creates a search task for the available providers or a specific provider category.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Syntax
'Declaration
Function CreateSearch ( _
pSearchQuery As IVsSearchQuery, _
pSearchCallback As IVsGlobalSearchCallback, _
guidCategory As Guid _
) As IVsGlobalSearchTask
IVsGlobalSearchTask CreateSearch(
IVsSearchQuery pSearchQuery,
IVsGlobalSearchCallback pSearchCallback,
Guid guidCategory
)
IVsGlobalSearchTask^ CreateSearch(
[InAttribute] IVsSearchQuery^ pSearchQuery,
[InAttribute] IVsGlobalSearchCallback^ pSearchCallback,
[InAttribute] Guid guidCategory
)
abstract CreateSearch :
pSearchQuery:IVsSearchQuery *
pSearchCallback:IVsGlobalSearchCallback *
guidCategory:Guid -> IVsGlobalSearchTask
function CreateSearch(
pSearchQuery : IVsSearchQuery,
pSearchCallback : IVsGlobalSearchCallback,
guidCategory : Guid
) : IVsGlobalSearchTask
Parameters
pSearchQuery
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery[in] An IVsSearchQuery interface that contains the structured search string.
pSearchCallback
Type: Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchCallback[in] The callback to be used to track progress of the search.
guidCategory
Type: Guid[in, optional] GUID that identifies the category of the search provider. Use GUID_NULL for this parameter to search across all providers.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsGlobalSearchTask
The search task (IVsGlobalSearchTask) that was created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.