DesignerDocDataService.IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow 方法

对文档窗口之前显示。

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

语法

声明
Private Function OnBeforeDocumentWindowShow ( _
    docCookie As UInteger, _
    firstShow As Integer, _
    pFrame As IVsWindowFrame _
) As Integer Implements IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow
int IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow(
    uint docCookie,
    int firstShow,
    IVsWindowFrame pFrame
)

参数

  • docCookie
    类型:System.UInt32
    文档数据对象的标识符在运行的文档表。
  • firstShow
    类型:System.Int32
    true ,如果窗口将首次显示,否则 false。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

实现

IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow(UInt32, Int32, IVsWindowFrame)

备注

默认情况下此方法不执行任何操作。

.NET Framework 安全性

请参见

参考

DesignerDocDataService 类

Microsoft.VisualStudio.Shell.Design.Serialization 命名空间