Share via


ParseRequest.FileName Property

Specifies the name of the source file being parsed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Property FileName As String
public string FileName { get; set; }
public:
property String^ FileName {
    String^ get ();
    void set (String^ value);
}
member FileName : string with get, set
function get FileName () : String 
function set FileName (value : String)

Property Value

Type: System.String
Returns the string containing the file name that was passed to the ParseRequest class constructor.

Remarks

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.

.NET Framework Security

See Also

Reference

ParseRequest Class

Microsoft.VisualStudio.Package Namespace