Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates the extension provider declared with the attribute TAttribute on the package, implementing an extension point of type TInterface.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Protected Function CreateExtensionPointProvider(Of TAttribute As ExtensionPointRegistrationAttribute, TInterface As Class) ( _
provider As Guid _
) As TInterface
protected TInterface CreateExtensionPointProvider<TAttribute, TInterface>(
Guid provider
)
where TAttribute : ExtensionPointRegistrationAttribute
where TInterface : class
protected:
generic<typename TAttribute, typename TInterface>
where TAttribute : ExtensionPointRegistrationAttribute
where TInterface : ref class
TInterface CreateExtensionPointProvider(
Guid provider
)
member CreateExtensionPointProvider :
provider:Guid -> 'TInterface when 'TAttribute : ExtensionPointRegistrationAttribute when 'TInterface : not struct
JScript does not support generic types or methods.
Type Parameters
- TAttribute
The attribute of the package.
- TInterface
The extension point.
Parameters
provider
Type: GuidGUID of the requested extension provider.
Return Value
Type: TInterface
The requested extension provider.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The requested provider was not found. |
InvalidCastException | The requested provider does not implement the TInterface interface. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.