Class FileContentTypeManager
Inheritance
System.Object
FileContentTypeManager
Implements
Inherited Members
Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke.dll
Syntax
public class FileContentTypeManager : ComponentBase<IFileContentTypeManager, FileContentTypeManager>, IFileContentTypeManager
Properties
| Improve this Doc View SourceContentTypes
Gets get all content types dictionary.
Declaration
public virtual IDictionary<string, string> ContentTypes { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.String> |
Methods
| Improve this Doc View SourceGetContentType(String)
Gets the Content Type for the specified file extension.
Declaration
public virtual string GetContentType(string extension)
Parameters
Type | Name | Description |
---|---|---|
System.String | extension | The file extension. |
Returns
Type | Description |
---|---|
System.String | The Content Type for the specified extension. |