Compartir a través de


IVsSearchProvider Interface

Exposes a single search provider.

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("E85FDFC2-A874-4871-88A3-A2E904183A05")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsSearchProvider
[GuidAttribute("E85FDFC2-A874-4871-88A3-A2E904183A05")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsSearchProvider
[GuidAttribute(L"E85FDFC2-A874-4871-88A3-A2E904183A05")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsSearchProvider
[<GuidAttribute("E85FDFC2-A874-4871-88A3-A2E904183A05")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsSearchProvider =  interface end
public interface IVsSearchProvider

The IVsSearchProvider type exposes the following members.

Properties

  Name Description
Public property Category Gets an identifier for the search provider.
Public property Description Gets a description of the provider results, for example "Searches top-level menu items."
Public property DisplayText Gets a displayable name for the search provider, for example "Menu items."
Public property Shortcut Gets a unique category shortcut that can be used in filtering the results from multiple providers. For example, searching for "@cmd" only returns search results from the provider with category shortcut "cmd".
Public property Tooltip Gets a tooltip for the provider. The tooltip is displayed when it appears in the Global Search UI instead of "Show results from this category only".

Top

Methods

  Name Description
Public method CreateItemResult Creates a new instance of a search result from a persistence string previously obtained by getting the value of the persistence data string.
Public method CreateSearch Creates a search task from the specified cookie and search query.
Public method ProvideSearchSettings Injects specialized settings into the data model associated with the command search provider.

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace