LanguageService.OpenDocument Method (String)

 

Opens the specified file.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public void OpenDocument(
	string path
)

Parameters

path
Type: System.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.

Return to top
Show: