ProjectNode.OpenItemWithSpecific Method

Opens an item using a specific editor.

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

Syntax

'宣言
Public Overridable Function OpenItemWithSpecific ( _
    itemId As UInteger, _
    editorFlags 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 editorFlags 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.OpenItemWithSpecific(itemId, _
    editorFlags, editorType, physicalView, _
    logicalView, docDataExisting, frame)
public virtual int OpenItemWithSpecific(
    uint itemId,
    uint editorFlags,
    ref Guid editorType,
    string physicalView,
    ref Guid logicalView,
    IntPtr docDataExisting,
    out IVsWindowFrame frame
)
public:
virtual int OpenItemWithSpecific(
    unsigned int itemId, 
    unsigned int editorFlags, 
    Guid% editorType, 
    String^ physicalView, 
    Guid% logicalView, 
    IntPtr docDataExisting, 
    [OutAttribute] IVsWindowFrame^% frame
)
public function OpenItemWithSpecific(
    itemId : uint, 
    editorFlags : uint, 
    editorType : Guid, 
    physicalView : String, 
    logicalView : Guid, 
    docDataExisting : IntPtr, 
    frame : IVsWindowFrame
) : int

Parameters

  • editorType
    Type: System.Guid%

    Unique identifier of the editor type.

  • logicalView
    Type: System.Guid%

    Name of the logical view.

  • docDataExisting
    Type: System.IntPtr

    Specifies the existing document data object on the document to open.

Return Value

Type: System.Int32

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

Implements

IVsProject3.OpenItemWithSpecific(UInt32, UInt32, Guid%, String, Guid%, IntPtr, IVsWindowFrame%)

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace