Compartir a través de


IVsShell6.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
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.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: Guid%

    [in] Package containing the desired extension.

  • extensionPoint
    Type: Guid%

    [in] The type of extension point.

  • instance
    Type: Guid%

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

Return Value

Type: Object
The requested extension point instance.

.NET Framework Security

See Also

Reference

IVsShell6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace