ExtensionPointPackage::CreateDiagnosticsProvider Method (Guid)
Visual Studio 2015
Creates the diagnostics 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 diagnostics provider.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsDiagnosticsProvider^The requested diagnostics provider.
| Exception | Condition |
|---|---|
| ArgumentException | The requested provider was not found. |
| InvalidCastException | The requested provider does not implement the IVsDiagnosticsProvider interface. |
This method is called by the base class in response to a request for the ExtId_VsComponentDiagnostics extension point. The base implementation searches for the ProvideComponentDiagnosticsAttribute attributes on the package class and instantiates the appropriate provider. This method may be overridden.
Show: