C# Class WinRTXamlToolkit.IO.Extensions.FileNameMimeContentConversion

Helpers for file name to MIME content type conversion.
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
GetMimeContentTypeFromFileName ( this fileName ) : string

Gets the MIME content type based on file name.

Consider doing this instead if you are already opening the file:
var fs = await folder.GetFileAsync(fileName);
var contentType = fs.ContentType;

Method Details

GetMimeContentTypeFromFileName() public static method

Gets the MIME content type based on file name.
Consider doing this instead if you are already opening the file:
var fs = await folder.GetFileAsync(fileName);
var contentType = fs.ContentType;
public static GetMimeContentTypeFromFileName ( this fileName ) : string
fileName this
return string