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: UInt32The cookie that identifies the search.
pSearchQuery
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchQueryThe search query.
pSearchCallback
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchCallbackA callback interface whose functions need to be called when the search task is complete or has made more progress.
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
- 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.