Compartir a través de


ExtensionPointPackage.CreateSearchProvider(Guid) Method

Definition

Creates the global search provider for the given registered provider GUID. This is called by the base class in response to a request for the IVsSearchProvider extension point. The base implementation searches for ProvideSearchProvider attributes on the package class and instantiates the appropriate provider. May be overridden.

protected:
 virtual Microsoft::VisualStudio::Shell::Interop::IVsSearchProvider ^ CreateSearchProvider(Guid provider);
protected virtual Microsoft.VisualStudio.Shell.Interop.IVsSearchProvider CreateSearchProvider (Guid provider);
abstract member CreateSearchProvider : Guid -> Microsoft.VisualStudio.Shell.Interop.IVsSearchProvider
override this.CreateSearchProvider : Guid -> Microsoft.VisualStudio.Shell.Interop.IVsSearchProvider
Protected Overridable Function CreateSearchProvider (provider As Guid) As IVsSearchProvider

Parameters

provider
Guid

The GUID of the requested search provider

Returns

The requested search provider

Exceptions

The requested provider was not found

The requested provider does not implement the IVsSearchProvider interface

Remarks

This method is called in response to a request for the IVsSearchProvider extension point. The implementation searches for ProvideSearchProvider attributes on the package class and instantiates the appropriate provider. This method can be overridden.

Applies to