Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Opens the specified document in the specified view.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Sub OpenDocument ( _
provider As IServiceProvider, _
fullPath As String, _
logicalView As Guid, _
<OutAttribute> ByRef hierarchy As IVsUIHierarchy, _
<OutAttribute> ByRef itemID As UInteger, _
<OutAttribute> ByRef windowFrame As IVsWindowFrame _
)
public static void OpenDocument(
IServiceProvider provider,
string fullPath,
Guid logicalView,
out IVsUIHierarchy hierarchy,
out uint itemID,
out IVsWindowFrame windowFrame
)
public:
static void OpenDocument(
IServiceProvider^ provider,
String^ fullPath,
Guid logicalView,
[OutAttribute] IVsUIHierarchy^% hierarchy,
[OutAttribute] unsigned int% itemID,
[OutAttribute] IVsWindowFrame^% windowFrame
)
static member OpenDocument :
provider:IServiceProvider *
fullPath:string *
logicalView:Guid *
hierarchy:IVsUIHierarchy byref *
itemID:uint32 byref *
windowFrame:IVsWindowFrame byref -> unit
public static function OpenDocument(
provider : IServiceProvider,
fullPath : String,
logicalView : Guid,
hierarchy : IVsUIHierarchy,
itemID : uint,
windowFrame : IVsWindowFrame
)
Parameters
provider
Type: IServiceProvider
fullPath
Type: StringThe absolute path of the document.
logicalView
Type: GuidThe 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: 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.