Udostępnij za pośrednictwem


ExtensionPointPackage.CreateDiagnosticsProvider(Guid) Method

Definition

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

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

Parameters

provider
Guid

The GUID of the requested diagnostics provider

Returns

The requested diagnostics provider

Exceptions

The requested provider was not found

The requested provider does not implement the IVsDiagnosticsProvider interface

Remarks

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.

Applies to