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