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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.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: String%[out] Returns the extensions for this language.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.