ExtensionPointPackage.CreateExtensionPointProvider<TAttribute,TInterface> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建使用包的特性声明的扩展提供程序 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 接口。