Compartir a través de


IFileExtensionRegistryService Interface

Definition

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

public interface class IFileExtensionRegistryService
public interface class IFileExtensionRegistryService
__interface IFileExtensionRegistryService
public interface IFileExtensionRegistryService
type IFileExtensionRegistryService = interface
Public Interface IFileExtensionRegistryService
Derived

Remarks

This is a MEF component part, and should be exported with the following attribute: [Export(typeof(IFileExtensionRegistryService))]

Methods

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.

Applies to