ExtensionPointPackage::CreateSearchProvider Method (Guid)
Visual Studio 2015
Creates the global search provider for the given registered provider GUID.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- provider
-
Type:
System::Guid
GUID of the requested search provider.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsSearchProvider^The requested search provider.
| Exception | Condition |
|---|---|
| ArgumentException | The requested provider was not found. |
| InvalidCastException | The requested provider does not implement the IVsSearchProvider interface. |
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.
Show: