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

声明
Public Overridable Function GetFileExtensions ( _
    <OutAttribute> ByRef extensions As String _
) As Integer
用法
Dim instance As LanguageService
Dim extensions As String
Dim returnValue As Integer

returnValue = instance.GetFileExtensions(extensions)
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

LanguageService Members

Microsoft.VisualStudio.Package Namespace