VsShellUtilities::IsDocumentOpen Method (IServiceProvider^, String^, Guid, IVsUIHierarchy^, UInt32, IVsWindowFrame^)
Visual Studio 2015
Determines whether the specified document is open.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static bool IsDocumentOpen( IServiceProvider^ provider, String^ fullPath, Guid logicalView, [OutAttribute] IVsUIHierarchy^% hierarchy, [OutAttribute] unsigned int% itemID, [OutAttribute] IVsWindowFrame^% windowFrame )
Parameters
- provider
- Type: System::IServiceProvider^
- 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^
[out] Returns the IVsUIHierarchy interface of the project that contains the document.
- itemID
-
Type:
System::UInt32
[out] Returns the item ID of the document.
- windowFrame
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^
[out] Returns the IVsWindowFrame in which the document is open.
Return Value
Type: System::Booleantrue if the document is open in the given logical view. If logicalView is Guid.Empty, then this method returns true if any view is open; otherwise, false.
Show: