The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IFileExtensionRegistryService Interface

The service that manages associations between file extensions and content types.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

public interface class IFileExtensionRegistryService

The IFileExtensionRegistryService type exposes the following members.

Public methodAddFileExtensionAdds a new file extension to the registry.
Public methodGetContentTypeForExtensionGets the content type associated with the given file extension.
Public methodGetExtensionsForContentTypeGets the list of file extensions associated with the specified content type.
Public methodRemoveFileExtensionRemoves the specified file extension from the registry.

This is a MEF component part, and should be imported as follows:

internal IFileExtensionRegistryService registryService = null;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft