IVsSearchTask Interface

Starts or stops a search operation.

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

Syntax

'Declaration
<GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsSearchTask
[GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsSearchTask
[GuidAttribute(L"D709F307-68DB-4600-9EE2-D9F11BA1E005")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsSearchTask
[<GuidAttribute("D709F307-68DB-4600-9EE2-D9F11BA1E005")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
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