MimeTypeMapGetExtension Method

Gets the extension from the provided MIME type.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static string GetExtension(
	string mimeType,
	bool throwErrorIfNotFound = true
)

Parameters

mimeType  String
Type of the MIME.
throwErrorIfNotFound  Boolean  (Optional)
if set to true, throws error if extension's not found.

Return Value

String
The extension.

Exceptions

See Also