Freigeben über


IFileExtensionRegistryService2 Interface

Definition

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

public interface class IFileExtensionRegistryService2 : Microsoft::VisualStudio::Utilities::IFileExtensionRegistryService
public interface class IFileExtensionRegistryService2 : Microsoft::VisualStudio::Utilities::IFileExtensionRegistryService
__interface IFileExtensionRegistryService2 : Microsoft::VisualStudio::Utilities::IFileExtensionRegistryService
public interface IFileExtensionRegistryService2 : Microsoft.VisualStudio.Utilities.IFileExtensionRegistryService
type IFileExtensionRegistryService2 = interface
    interface IFileExtensionRegistryService
Public Interface IFileExtensionRegistryService2
Implements IFileExtensionRegistryService
Implements

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.

(Inherited from IFileExtensionRegistryService)
AddFileName(String, IContentType)

Adds a new file name to the registry.

GetContentTypeForExtension(String)

Gets the content type associated with the given file extension.

(Inherited from IFileExtensionRegistryService)
GetContentTypeForFileName(String)

Gets the content type associated with the given file name.

GetContentTypeForFileNameOrExtension(String)

Gets the content type associated with the given file name or its extension.

GetExtensionsForContentType(IContentType)

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

(Inherited from IFileExtensionRegistryService)
GetFileNamesForContentType(IContentType)

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

RemoveFileExtension(String)

Removes the specified file extension from the registry.

(Inherited from IFileExtensionRegistryService)
RemoveFileName(String)

Removes the specified file name from the registry.

Applies to