ItemOperations.OpenFile Method
Opens a file as though you invoked an Open File command in the integrated development environment (IDE).
Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)
Assembly: EnvDTE (in envdte.dll)
Window OpenFile ( [InAttribute] string FileName, [OptionalAttribute] [InAttribute] string ViewKind )
Window OpenFile ( /** @attribute InAttribute() */ String FileName, /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String ViewKind )
Parameters
- FileName
Required. The full path and name of the file to be opened.
- ViewKind
Optional. A ConstantsvsViewKind* constant specifying the type of view in which to create the file.