IFileExtensionRegistryService Interface
The service that manages associations between file extensions and content types.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
| Name | Description | |
|---|---|---|
![]() | AddFileExtension(String, IContentType) | Adds a new file extension to the registry. |
![]() | GetContentTypeForExtension(String) | Gets the content type associated with the given file extension. |
![]() | GetExtensionsForContentType(IContentType) | Gets the list of file extensions associated with the specified content type. |
![]() | RemoveFileExtension(String) | Removes the specified file extension from the registry. |
This is a MEF component part, and should be imported as follows:
[Import] internal IFileExtensionRegistryService registryService = null;
Show:
