Compartilhar via


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: UInt32

    Cookie with a task identifier.

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

See Also

Reference

VsSearchTask Class

Microsoft.VisualStudio.Shell Namespace