ParseRequest::FileName Property

 

Specifies the name of the source file being parsed.

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

public:
property String^ FileName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

Returns the string containing the file name that was passed to the ParseRequest class constructor.

This property can be used in managing multiple parse requests on multiple buffers. In the default managed package framework implementation of the language service classes, this property is not used.

If the parser must be concerned with the name of the file (for example, the parser handles multiple languages and the extension on the file determines which language to use), then it can access the file name with this property. However, a parser typically ignores this property.

Return to top
Show: