共用方式為


VsShellUtilities.GetPackageExtensionPoint<TExtensionPoint, TInterface> Method

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared Function GetPackageExtensionPoint(Of TExtensionPoint As Class, TInterface As Class) ( _
    package As Guid, _
    instance As Guid _
) As TInterface
public static TInterface GetPackageExtensionPoint<TExtensionPoint, TInterface>(
    Guid package,
    Guid instance
)
where TExtensionPoint : class
where TInterface : class

Type Parameters

  • TExtensionPoint
  • TInterface

Parameters

Return Value

Type: TInterface

.NET Framework Security

See Also

Reference

VsShellUtilities Class

Microsoft.VisualStudio.Shell Namespace