Click or drag to resize

IOUtilitiesFindContentType Method (String)

Determines the MIME type from a file path. Based on Windows FindMimeFromData function.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static string FindContentType(
	string path
)

Parameters

path
Type: SystemString
The file path.

Return Value

Type: String
The content type or null if it cannot be determined.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also