LanguageService.GetFileExtensions Method (String)


Returns a string containing the file extensions associated with this language.

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

public virtual int GetFileExtensions(
	out string extensions


Type: System.String

[out] Returns the extensions for this language.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code.

The extensions are stored in a semi-colon delimited list. For example, if your language service supports C++, C#, and Visual Basic, it might return ".cpp;.cs;.vb".

Return to top