VsSearchTask Constructor
Initializes a new instance of the VsSearchTask class.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public Sub New ( _
dwCookie As UInteger, _
pSearchQuery As IVsSearchQuery, _
pSearchCallback As IVsSearchCallback _
)
public VsSearchTask(
uint dwCookie,
IVsSearchQuery pSearchQuery,
IVsSearchCallback pSearchCallback
)
Parameters
- dwCookie
Type: System.UInt32
Cookie with a task identifier.
- pSearchQuery
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchQuery
Search query used by the search task.
- pSearchCallback
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback
Callback interface whose functions need to be called when the search task is complete or has made more progress.
Remarks
The VsSearchTask class implements the IVsSearchTask interface and provides basic functionality for setting the search status when the search is in progress or completes. If you are implementing a search task derived from this class, you only need to override the OnStartSearch method to perform the actual search.
.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.