Compartir a través de


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

  • 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

See Also

Reference

IVsGlobalSearch Interface

Microsoft.VisualStudio.Shell.Interop Namespace