Used to implement Window.NewWindow functionality.
Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
声明
Function OpenCopyOfStandardEditor ( _
    pWindowFrame As IVsWindowFrame, _
    ByRef rguidLogicalView As Guid, _
    <OutAttribute> ByRef ppNewWindowFrame As IVsWindowFrame _
) As Integer
用法
Dim instance As IVsUIShellOpenDocument
Dim pWindowFrame As IVsWindowFrame
Dim rguidLogicalView As Guid
Dim ppNewWindowFrame As IVsWindowFrame
Dim returnValue As Integer
returnValue = instance.OpenCopyOfStandardEditor(pWindowFrame, _
    rguidLogicalView, ppNewWindowFrame)
int OpenCopyOfStandardEditor(
    IVsWindowFrame pWindowFrame,
    ref Guid rguidLogicalView,
    out IVsWindowFrame ppNewWindowFrame
)
int OpenCopyOfStandardEditor(
    [InAttribute] IVsWindowFrame^ pWindowFrame, 
    [InAttribute] Guid% rguidLogicalView, 
    [OutAttribute] IVsWindowFrame^% ppNewWindowFrame
)
abstract OpenCopyOfStandardEditor : 
        pWindowFrame:IVsWindowFrame * 
        rguidLogicalView:Guid byref * 
        ppNewWindowFrame:IVsWindowFrame byref -> int 
function OpenCopyOfStandardEditor(
    pWindowFrame : IVsWindowFrame, 
    rguidLogicalView : Guid, 
    ppNewWindowFrame : IVsWindowFrame
) : int
Parameters
- pWindowFrame
 Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
 [in] Pointer to the original window frame to clone.
- rguidLogicalView
 Type: System.Guid%
 [in] GUID identifying the logical view. For a list of logical view GUIDS, see Single and Multi-tab Views.
- ppNewWindowFrame
 Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%
 [out] Pointer to the new, cloned window frame.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsUIShellOpenDocument::OpenCopyOfStandardEditor(
   [in] IVsWindowFrame *pWindowFrame,
   [in] REFGUID rguidLogicalView,
   [out, retval] IVsWindowFrame **ppNewWindowFrame
);
Editors should handle cmdidNewWindow command by calling this method.
.NET Framework Security
- 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.
See Also
Reference
IVsUIShellOpenDocument Interface