IVsSearchTask Interface

Starts or stops a search operation.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")> _
Public Interface IVsSearchTask
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")]
public interface IVsSearchTask
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"D709F307-68DB-4600-9EE2-D9F11BA1E005")]
public interface class IVsSearchTask
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")>]
type IVsSearchTask =  interface end
public interface IVsSearchTask

The IVsSearchTask type exposes the following members.

Properties

  Name Description
Public property ErrorCode Gets the error code for the search (meaningful only if the search has encountered an error).
Public property Id Gets the VSCOOKIE identifying the task.
Public property SearchQuery Gets the search query used when the search task was created.
Public property Status Gets the task status, with values from __VSSEARCHTASKSTATUS.

Top

Methods

  Name Description
Public method Start Starts the actual search. Search operations are always called on background threads.
Public method Stop Stops a previously-started search (for example, the user clicked the X button during a long search).

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace