LanguageService::GetSource Method (String^)

 

Returns an existing Source object given a file name.

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

public:
Source^ GetSource(
	String^ fname
)

Parameters

fname
Type: System::String^

[in] The file name for which to find the Source object.

Return Value

Type: Microsoft.VisualStudio.Package::Source^

If successful, returns a Source object; otherwise, returns a null value (there is no Source object in this language service that represents the specified file name).

Each Source object remembers the file name that it represents. The internal list of Source objects is searched for a matching name (which is a case-insensitive comparison).

Return to top
Show: