ExtensionPointPackage.CreateExtensionPointProvider<TAttribute,TInterface> 方法

定义

创建使用包的特性声明的扩展提供程序 TAttribute ,实现类型的扩展点 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

类型参数

TAttribute

包的属性。

TInterface

扩展点。

参数

provider
Guid

请求的扩展提供程序的 GUID。

返回

TInterface

请求的扩展提供程序。

例外

找不到请求的提供程序。

请求的提供程序未实现 TInterface 接口。

适用于