次の方法で共有


IVsProject3.OpenItemWithSpecific Method

Definition

Opens an item using a specific editor.

public:
 int OpenItemWithSpecific(System::UInt32 itemid, System::UInt32 grfEditorFlags, Guid % rguidEditorType, System::String ^ pszPhysicalView, Guid % rguidLogicalView, IntPtr punkDocDataExisting, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ % ppWindowFrame);
public int OpenItemWithSpecific (uint itemid, uint grfEditorFlags, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, IntPtr punkDocDataExisting, out Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ppWindowFrame);
abstract member OpenItemWithSpecific : uint32 * uint32 * Guid * string * Guid * nativeint * IVsWindowFrame -> int
Public Function OpenItemWithSpecific (itemid As UInteger, grfEditorFlags As UInteger, ByRef rguidEditorType As Guid, pszPhysicalView As String, ByRef rguidLogicalView As Guid, punkDocDataExisting As IntPtr, ByRef ppWindowFrame As IVsWindowFrame) As Integer

Parameters

itemid
UInt32

[in] Item identifier of the item to open. Values are taken from the VSITEMIDDWORD.

grfEditorFlags
UInt32

[in] Flags whose values are taken from the __VSSPECIFICEDITORFLAGS enumeration.

rguidEditorType
Guid

[in] Unique identifier of the editor type.

pszPhysicalView
String

[in] Name of the physical view.

rguidLogicalView
Guid

[in] Name of the logical view.

punkDocDataExisting
IntPtr

nativeint

[in] Pointer to the IUnknown interface on the document to open.

ppWindowFrame
IVsWindowFrame

[out] Pointer to the IVsWindowFrame2 interface.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProject3::OpenItemWithSpecific(  
   [in] VSITEMID itemid,  
   [in] VSSPECIFICEDITORFLAGS grfEditorFlags,  
   [in] REFGUID rguidEditorType,  
   [in] LPCOLESTR pszPhysicalView,  
   [in] REFGUID rguidLogicalView,  
   [in] IUnknown *punkDocDataExisting,  
   [out] IVsWindowFrame **ppWindowFrame  
);  

This method is used to ask the project to open the item (document) using the specified editor information. It is an extension of OpenItem.

It is implemented in conjunction with OpenSpecificEditor.

Applies to