Method TryGetContentType
TryGetContentType(string, out MimeContentType?)
Given a file path, determine the MIME type
Declaration
public bool TryGetContentType(string path, out MimeContentType? contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | A file path |
| MimeContentType? | contentType | The resulting MIME type |
Returns
| Type | Description |
|---|---|
| bool | True if MIME type could be determined |