Condividi tramite


DesignerDocDataService.IVsRunningDocTableEvents.OnBeforeDocumentWindowShow Method

Called before a document window is displayed.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Dichiarazione
Private Function OnBeforeDocumentWindowShow ( _
    docCookie As UInteger, _
    firstShow As Integer, _
    pFrame As IVsWindowFrame _
) As Integer Implements IVsRunningDocTableEvents.OnBeforeDocumentWindowShow
'Utilizzo
Dim instance As DesignerDocDataService
Dim docCookie As UInteger
Dim firstShow As Integer
Dim pFrame As IVsWindowFrame
Dim returnValue As Integer

returnValue = CType(instance, IVsRunningDocTableEvents).OnBeforeDocumentWindowShow(docCookie, _
    firstShow, pFrame)
int IVsRunningDocTableEvents.OnBeforeDocumentWindowShow(
    uint docCookie,
    int firstShow,
    IVsWindowFrame pFrame
)
private:
virtual int OnBeforeDocumentWindowShow(
    unsigned int docCookie, 
    int firstShow, 
    IVsWindowFrame^ pFrame
) sealed = IVsRunningDocTableEvents::OnBeforeDocumentWindowShow
private abstract OnBeforeDocumentWindowShow : 
        docCookie:uint32 * 
        firstShow:int * 
        pFrame:IVsWindowFrame -> int 
private override OnBeforeDocumentWindowShow : 
        docCookie:uint32 * 
        firstShow:int * 
        pFrame:IVsWindowFrame -> int 
JScript does not support explicit interface implementations.

Parameters

  • docCookie
    Type: System.UInt32
    The identifier of the document data object in the Running Document Table.
  • firstShow
    Type: System.Int32
    true if the window will be displayed for the first time, otherwise false.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsRunningDocTableEvents.OnBeforeDocumentWindowShow(UInt32, Int32, IVsWindowFrame)

Remarks

This method registers the window pane as an independent view.

.NET Framework Security

See Also

Reference

DesignerDocDataService Class

DesignerDocDataService Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace