Поделиться через


LanguageService.GetFileExtensions Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function GetFileExtensions ( _
    <OutAttribute> ByRef extensions As String _
) As Integer
public virtual int GetFileExtensions(
    out string extensions
)
public:
virtual int GetFileExtensions(
    [OutAttribute] String^% extensions
)
abstract GetFileExtensions : 
        extensions:string byref -> int 
override GetFileExtensions : 
        extensions:string byref -> int 
public function GetFileExtensions(
    extensions : String
) : int

Parameters

  • 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.

Implements

IVsLanguageInfo.GetFileExtensions(String%)

Remarks

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".

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace