Compartir a través de


ToolWindowPane.CreateSearch Method

Override at least this function if you need to support search in a tool window.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Overridable Function CreateSearch ( _
    dwCookie As UInteger, _
    pSearchQuery As IVsSearchQuery, _
    pSearchCallback As IVsSearchCallback _
) As IVsSearchTask
public virtual IVsSearchTask CreateSearch(
    uint dwCookie,
    IVsSearchQuery pSearchQuery,
    IVsSearchCallback pSearchCallback
)
public:
virtual IVsSearchTask^ CreateSearch(
    unsigned int dwCookie, 
    IVsSearchQuery^ pSearchQuery, 
    IVsSearchCallback^ pSearchCallback
)
abstract CreateSearch : 
        dwCookie:uint32 * 
        pSearchQuery:IVsSearchQuery * 
        pSearchCallback:IVsSearchCallback -> IVsSearchTask  
override CreateSearch : 
        dwCookie:uint32 * 
        pSearchQuery:IVsSearchQuery * 
        pSearchCallback:IVsSearchCallback -> IVsSearchTask
public function CreateSearch(
    dwCookie : uint, 
    pSearchQuery : IVsSearchQuery, 
    pSearchCallback : IVsSearchCallback
) : IVsSearchTask

Parameters

  • dwCookie
    Type: UInt32

    The cookie that identifies the search.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchTask
The search task that was created. The search begins when an explicit call to that Start method on the task is made.

Implements

IVsWindowSearch.CreateSearch(UInt32, IVsSearchQuery, IVsSearchCallback)

.NET Framework Security

See Also

Reference

ToolWindowPane Class

Microsoft.VisualStudio.Shell Namespace