IVsProject3::OpenItemWithSpecific Method (UInt32, UInt32, Guid, String^, Guid, IntPtr, IVsWindowFrame^)

 

Opens an item using a specific editor.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OpenItemWithSpecific(
	unsigned int itemid,
	unsigned int grfEditorFlags,
	[InAttribute] Guid% rguidEditorType,
	String^ pszPhysicalView,
	[InAttribute] Guid% rguidLogicalView,
	IntPtr punkDocDataExisting,
	[OutAttribute] IVsWindowFrame^% ppWindowFrame
)

Parameters

itemid
Type: System::UInt32

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

grfEditorFlags
Type: System::UInt32

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

rguidEditorType
Type: System::Guid

[in] Unique identifier of the editor type.

pszPhysicalView
Type: System::String^

[in] Name of the physical view.

rguidLogicalView
Type: System::Guid

[in] Name of the logical view.

punkDocDataExisting
Type: System::IntPtr

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

ppWindowFrame
Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

[out] Pointer to the IVsWindowFrame2 interface.

Return Value

Type: System::Int32

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

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.

Return to top
Show: