ProjectNode.ReopenItem Method

Reopens the project item in the specified editor.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function ReopenItem ( _
    itemId As UInteger, _
    ByRef editorType As Guid, _
    physicalView As String, _
    ByRef logicalView As Guid, _
    docDataExisting As IntPtr, _
    <OutAttribute> ByRef frame As IVsWindowFrame _
) As Integer
'使用
Dim instance As ProjectNode
Dim itemId As UInteger
Dim editorType As Guid
Dim physicalView As String
Dim logicalView As Guid
Dim docDataExisting As IntPtr
Dim frame As IVsWindowFrame
Dim returnValue As Integer

returnValue = instance.ReopenItem(itemId, _
    editorType, physicalView, logicalView, _
    docDataExisting, frame)
public virtual int ReopenItem(
    uint itemId,
    ref Guid editorType,
    string physicalView,
    ref Guid logicalView,
    IntPtr docDataExisting,
    out IVsWindowFrame frame
)
public:
virtual int ReopenItem(
    unsigned int itemId, 
    Guid% editorType, 
    String^ physicalView, 
    Guid% logicalView, 
    IntPtr docDataExisting, 
    [OutAttribute] IVsWindowFrame^% frame
)
public function ReopenItem(
    itemId : uint, 
    editorType : Guid, 
    physicalView : String, 
    logicalView : Guid, 
    docDataExisting : IntPtr, 
    frame : IVsWindowFrame
) : int

Parameters

  • itemId
    Type: System.UInt32

    Identifier of the item to be opened.

  • editorType
    Type: System.Guid%

    Unique identifier of the editor type.

  • logicalView
    Type: System.Guid%

    Unique identifier of the logical view.

  • docDataExisting
    Type: System.IntPtr

    Pointer to the existing document data object.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsProject3.ReopenItem(UInt32, Guid%, String, Guid%, IntPtr, IVsWindowFrame%)
IVsProject2.ReopenItem(UInt32, Guid%, String, Guid%, IntPtr, IVsWindowFrame%)

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace