VsShellUtilities::GetRunningDocumentContents Method (IServiceProvider^, String^)

 

Gets the text of the specified file, if it exists in the running document table.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static String^ GetRunningDocumentContents(
	IServiceProvider^ site,
	String^ path
)

Parameters

site
Type: System::IServiceProvider^

IServiceProvider.

path
Type: System::String^

The absolute path of the file.

Return Value

Type: System::String^

The text of the file.

Return to top
Show: