WindowHelper.ShowModalElement 方法 (Guid, UInt32, IVsUISimpleDataSource)

创建指定的组件并将其显示为有模式对话框,使用 IDE 的主窗口作为父级。

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

语法

声明
Public Shared Function ShowModalElement ( _
    factory As Guid, _
    elementId As UInteger, _
    dataSource As IVsUISimpleDataSource _
) As Integer
public static int ShowModalElement(
    Guid factory,
    uint elementId,
    IVsUISimpleDataSource dataSource
)

参数

  • factory
    类型:System.Guid
    应创建 UI 工厂的 GUID。元素

返回值

类型:System.Int32
Win32 按钮的 ID 或 0 未知的。

.NET Framework 安全性

请参见

参考

WindowHelper 类

ShowModalElement 重载

Microsoft.Internal.VisualStudio.PlatformUI 命名空间