This topic has not yet been rated - Rate this topic

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 IFileExtensionRegistryService

The IFileExtensionRegistryService type exposes the following members.

  NameDescription
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.
Top

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

[Import]
internal IFileExtensionRegistryService registryService = null;
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.