VsSearchTask Constructor
Initializes a new instance of the VsSearchTask class.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
dwCookie As UInteger, _
pSearchQuery As IVsSearchQuery, _
pSearchCallback As IVsSearchCallback _
)
public VsSearchTask(
uint dwCookie,
IVsSearchQuery pSearchQuery,
IVsSearchCallback pSearchCallback
)
public:
VsSearchTask(
unsigned int dwCookie,
IVsSearchQuery^ pSearchQuery,
IVsSearchCallback^ pSearchCallback
)
new :
dwCookie:uint32 *
pSearchQuery:IVsSearchQuery *
pSearchCallback:IVsSearchCallback -> VsSearchTask
public function VsSearchTask(
dwCookie : uint,
pSearchQuery : IVsSearchQuery,
pSearchCallback : IVsSearchCallback
)
Parameters
dwCookie
Type: UInt32Cookie with a task identifier.
pSearchQuery
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchQuerySearch query used by the search task.
pSearchCallback
Type: Microsoft.VisualStudio.Shell.Interop.IVsSearchCallbackCallback 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.