EditorFactory.IsRegisteredExtension Method
Determines if a file extension is registered with this editor factory.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
‘선언
Public Overridable Function IsRegisteredExtension ( _
extension As String _
) As Boolean
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.
.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.