We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

EditorFactory.IsRegisteredExtension Method

Determines if a file extension is registered with this editor factory.

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)

public virtual bool IsRegisteredExtension(
	string extension
)

Parameters

extension
Type: System.String
A string containing the file extension.

Return Value

Type: System.Boolean
Returns true if the file extension is registered with this editor factory, false otherwise.

Show: