ExtensionPointPackage::CreateExtensionPointProvider<TAttribute, TInterface> Method (Guid)
Visual Studio 2015
Creates the extension provider declared with the attribute TAttribute on the package, implementing an extension point of type TInterface.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
protected: generic<typename TAttribute, typename TInterface> where TAttribute : ExtensionPointRegistrationAttribute where TInterface : ref class TInterface CreateExtensionPointProvider( Guid provider )
Parameters
- provider
-
Type:
System::Guid
GUID of the requested extension provider.
Return Value
Type: TInterfaceThe requested extension provider.
Type Parameters
- TAttribute
The attribute of the package.
- TInterface
The extension point.
| Exception | Condition |
|---|---|
| ArgumentException | The requested provider was not found. |
| InvalidCastException | The requested provider does not implement the TInterface interface. |
Show: