VsShellUtilities::TryOpenDocument Method (IServiceProvider^, String^, Guid, IVsUIHierarchy^, UInt32, IVsWindowFrame^)
Visual Studio 2015
Tries to open a document using the appropriate project.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static int TryOpenDocument( IServiceProvider^ provider, String^ fullPath, Guid logicalView, [OutAttribute] IVsUIHierarchy^% hierarchy, [OutAttribute] unsigned int% itemID, [OutAttribute] IVsWindowFrame^% windowFrame )
Parameters
- provider
-
Type:
System::IServiceProvider^
The service provider.
- fullPath
-
Type:
System::String^
The full path to the document.
- logicalView
-
Type:
System::Guid
The GUID of the logical view.
- hierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUIHierarchy^
The T:Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy interface of the project that contains the document to open.
- itemID
-
Type:
System::UInt32
The hierarchy item identifier of the document in the project.
- windowFrame
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^
Te window frame that is mapped to the document.
Show: