Table of Contents

Class MimeTypes

Namespace
Phoesion.Glow.SDK
Assembly
Phoesion.Glow.SDK.Abstractions.dll

Holds the MIME types

public sealed class MimeTypes
Inheritance
object
MimeTypes

Methods

GetMimeType(string, string)

Gets the MIME type for a file name.

public static string GetMimeType(string fileName, string Default = "application/octet-stream")

Parameters

fileName string

Name of the file.

Default string

The default value to use if not found.

Returns

string

GetMimeType<TDictionary>(string, string, TDictionary)

Gets the MIME type for a file name.

public static string GetMimeType<TDictionary>(string fileName, string Default = "application/octet-stream", TDictionary userTypes = null) where TDictionary : class, IReadOnlyDictionary<string, string>

Parameters

fileName string

Name of the file.

Default string

The default value to use if not found.

userTypes TDictionary

User-defined types.

Returns

string

Type Parameters

TDictionary