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
itemId
Type: System.UInt32Item identifier of the item to open. Values need to be valid identifiers, such as VSITEMID_ROOT.
editorFlags
Type: System.UInt32Flags whose values are taken from the __VSSPECIFICEDITORFLAGS enumeration.
editorType
Type: System.Guid%Unique identifier of the editor type.
physicalView
Type: System.StringName of the physical view.
logicalView
Type: System.Guid%Name of the logical view.
docDataExisting
Type: System.IntPtrSpecifies the existing document data object on the document to open.
frame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%Pointer to the IVsWindowFrame interface.
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
- 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.