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

NameDescription
System_CAPS_pubmethodAddFileExtension(String^, IContentType^)

Adds a new file extension to the registry.

System_CAPS_pubmethodGetContentTypeForExtension(String^)

Gets the content type associated with the given file extension.

System_CAPS_pubmethodGetExtensionsForContentType(IContentType^)

Gets the list of file extensions associated with the specified content type.

System_CAPS_pubmethodRemoveFileExtension(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;
Return to top
Show: