_DTE.OpenFile(String, String) Method
Definition
Important
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.
Microsoft Internal Use Only.
public:
EnvDTE::Window ^ OpenFile(System::String ^ ViewKind, System::String ^ FileName);
public:
EnvDTE::Window ^ OpenFile(Platform::String ^ ViewKind, Platform::String ^ FileName);
EnvDTE::Window OpenFile(std::wstring const & ViewKind, std::wstring const & FileName);
[System.Runtime.InteropServices.DispId(215)]
[System.Runtime.InteropServices.TypeLibFunc(64)]
public EnvDTE.Window OpenFile (string ViewKind, string FileName);
[<System.Runtime.InteropServices.DispId(215)>]
[<System.Runtime.InteropServices.TypeLibFunc(64)>]
abstract member OpenFile : string * string -> EnvDTE.Window
Public Function OpenFile (ViewKind As String, FileName As String) As Window
Parameters
- ViewKind
- String
The kind of view.
- FileName
- String
The name of the file.
Returns
The window in which the file is open.
- Attributes