MimeTypeMapGetMimeType Method

Gets the type of the MIME from the provided string.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static string GetMimeType(
	string str
)

Parameters

str  String
The filename or extension.

Return Value

String
The MIME type.

Exceptions

See Also