Share via


IVsShell5.CreatePackageExtension Method

Loads, if necessary, the specified package and creates an instance of the given type of extension point using IVsPackageExtensionProvider.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Function CreatePackageExtension ( _
    ByRef Package As Guid, _
    ByRef extensionPoint As Guid, _
    ByRef instance As Guid _
) As Object
Object CreatePackageExtension(
    ref Guid Package,
    ref Guid extensionPoint,
    ref Guid instance
)
Object^ CreatePackageExtension(
    [InAttribute] Guid% Package, 
    [InAttribute] Guid% extensionPoint, 
    [InAttribute] Guid% instance
)
abstract CreatePackageExtension : 
        Package:Guid byref * 
        extensionPoint:Guid byref * 
        instance:Guid byref -> Object
function CreatePackageExtension(
    Package : Guid, 
    extensionPoint : Guid, 
    instance : Guid
) : Object

Parameters

  • Package
    Type: System.Guid%

    [in] Package containing the desired extension.

  • extensionPoint
    Type: System.Guid%

    [in] The type of extension point.

  • instance
    Type: System.Guid%

    [in] The instance identifier of the requested extension point.

Return Value

Type: System.Object
The requested extension point instance.

.NET Framework Security

See Also

Reference

IVsShell5 Interface

Microsoft.VisualStudio.Shell.Interop Namespace