VsShellUtilities.TryGetPackageExtensionPoint<TExtensionPoint, TInterface> 方法

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Shared Function TryGetPackageExtensionPoint(Of TExtensionPoint As Class, TInterface As Class) ( _
    package As Guid, _
    instance As Guid _
) As TInterface
public static TInterface TryGetPackageExtensionPoint<TExtensionPoint, TInterface>(
    Guid package,
    Guid instance
)
where TExtensionPoint : class
where TInterface : class

类型参数

  • TExtensionPoint
  • TInterface

参数

返回值

类型:TInterface

.NET Framework 安全性

请参见

参考

VsShellUtilities 类

Microsoft.VisualStudio.Shell 命名空间