共用方式為


ExtensionPointPackage.CreateExtensionPointProvider<TAttribute,TInterface> Method

Definition

Create the extension provider declared with the attribute TAttribute on the package, implementing an extension point of type TInterface

protected:
generic <typename TAttribute, typename TInterface>
 where TAttribute : Microsoft::VisualStudio::Shell::ExtensionPointRegistrationAttribute where TInterface : class TInterface CreateExtensionPointProvider(Guid provider);
protected TInterface CreateExtensionPointProvider<TAttribute,TInterface> (Guid provider) where TAttribute : Microsoft.VisualStudio.Shell.ExtensionPointRegistrationAttribute where TInterface : class;
member this.CreateExtensionPointProvider : Guid -> 'Interface (requires 'Attribute :> Microsoft.VisualStudio.Shell.ExtensionPointRegistrationAttribute and 'Interface : null)
Protected Function CreateExtensionPointProvider(Of TAttribute As ExtensionPointRegistrationAttribute, TInterface As ExtensionPointRegistrationAttribute) (provider As Guid) As TInterface

Type Parameters

TAttribute
TInterface

Parameters

provider
Guid

Returns

TInterface

The requested extension provider

Exceptions

The requested provider was not found

The requested provider does not implement the TInterface interface

Applies to