IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow Method
Called before displaying a document window.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
‘선언
Function OnBeforeDocumentWindowShow ( _
docCookie As UInteger, _
fFirstShow As Integer, _
pFrame As IVsWindowFrame _
) As Integer
‘사용 방법
Dim instance As IVsRunningDocTableEvents2
Dim docCookie As UInteger
Dim fFirstShow As Integer
Dim pFrame As IVsWindowFrame
Dim returnValue As Integer
returnValue = instance.OnBeforeDocumentWindowShow(docCookie, _
fFirstShow, pFrame)
int OnBeforeDocumentWindowShow(
uint docCookie,
int fFirstShow,
IVsWindowFrame pFrame
)
int OnBeforeDocumentWindowShow(
[InAttribute] unsigned int docCookie,
[InAttribute] int fFirstShow,
[InAttribute] IVsWindowFrame^ pFrame
)
function OnBeforeDocumentWindowShow(
docCookie : uint,
fFirstShow : int,
pFrame : IVsWindowFrame
) : int
docCookie
Type: System.UInt32[in] Abstract value representing the document whose attributes have been changed.
fFirstShow
Type: System.Int32[in] Non-zero (TRUE) if the doc window is being displayed for the first time.
pFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame[in] The IVsWindowFrame interface object representing the frame that contains the document's window.
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
IVsRunningDocTableEvents.OnBeforeDocumentWindowShow(UInt32, Int32, IVsWindowFrame)
This method is called just before the document's window is shown.
From vsshell.idl:
HRESULT IVsRunningDocTableEvents2::OnBeforeDocumentWindowShow(
[in] VSCOOKIE docCookie,
[in] BOOL fFirstShow,
[in] IVsWindowFrame *pFrame
);
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
IVsRunningDocTableEvents2 Interface