VsShellUtilities::OpenDocument Method (IServiceProvider^, String^, Guid, IVsUIHierarchy^, UInt32, IVsWindowFrame^, IVsTextView^)

 

Opens the specified document in the specified logical view.

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

public:
static void OpenDocument(
	IServiceProvider^ provider,
	String^ fullPath,
	Guid logicalView,
	[OutAttribute] IVsUIHierarchy^% hierarchy,
	[OutAttribute] unsigned int% itemID,
	[OutAttribute] IVsWindowFrame^% windowFrame,
	[OutAttribute] IVsTextView^% view
)

Parameters

provider
Type: System::IServiceProvider^

IServiceProvider.

fullPath
Type: System::String^

The absolute path of the document.

logicalView
Type: System::Guid

The GUID of the logical view in which to open the document.

hierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIHierarchy^

[out] Returns the IVsUIHierarchy interface of the project that contains the document.

itemID
Type: System::UInt32

[out] The item ID of the document.

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

[out] Returns the IVsWindowFrame interface of the window in which the document is open.

view
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

[out] Returns the IVsTextView interface of the primary view of the window.

Return to top
Show: