Build Intelligent Apps:
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.Register now
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls the state of open documents within the environment.
public interface class IVsUIShellOpenDocument
C++/CX
public interface classIVsUIShellOpenDocument
__interface IVsUIShellOpenDocument
[System.Runtime.InteropServices.Guid("35299EEC-11EE-4518-9F08-401638D1D3BC")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsUIShellOpenDocument
[System.Runtime.InteropServices.Guid("35299EEC-11EE-4518-9F08-401638D1D3BC")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsUIShellOpenDocument
[<System.Runtime.InteropServices.Guid("35299EEC-11EE-4518-9F08-401638D1D3BC")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsUIShellOpenDocument = interface
[<System.Runtime.InteropServices.Guid("35299EEC-11EE-4518-9F08-401638D1D3BC")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsUIShellOpenDocument = interface
To provisionally open a document in the Visual Studio preview tab, use methods on this interface from within a using statement in conjunction with the NewDocumentStateScope class, or use the SetNewDocumentState method.
Notes to Callers
Call to determine whether a document is open, to open a document using various editors, or to preview a document.