The service that manages associations between file extensions and content types.
Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
声明
Public Interface IFileExtensionRegistryService
public interface IFileExtensionRegistryService
public interface class IFileExtensionRegistryService
type IFileExtensionRegistryService =  interface end
public interface IFileExtensionRegistryService
The IFileExtensionRegistryService type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddFileExtension | Adds a new file extension to the registry. | 
| .gif) | GetContentTypeForExtension | Gets the content type associated with the given file extension. | 
| .gif) | GetExtensionsForContentType | Gets the list of file extensions associated with the specified content type. | 
| .gif) | RemoveFileExtension | Removes the specified file extension from the registry. | 
Top
Remarks
This is a MEF component part, and should be imported as follows:
[Import]
internal IFileExtensionRegistryService registryService = null;