LanguageService.OpenDocument(String) Method
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.
Opens the specified file.
public:
void OpenDocument(System::String ^ path);
public:
void OpenDocument(Platform::String ^ path);
void OpenDocument(std::wstring const & path);
public void OpenDocument (string path);
member this.OpenDocument : string -> unit
Public Sub OpenDocument (path As String)
- path
- String
[in] The specified file to open.
A language service typically does not need to open a source file so this method is seldom used. However, you can call this method to open a source file if your language service requires that functionality. Visual Studio normally loads a source file then instantiates your language service as needed.
The base method loads the specified source file using the current project.