MimeTypeMapGetExtension Method
Gets the extension from the provided MIME type.
Namespace: GenerativeAI.CoreAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public static string GetExtension(
string mimeType,
bool throwErrorIfNotFound = true
)
- mimeType String
- Type of the MIME.
- throwErrorIfNotFound Boolean (Optional)
- if set to true, throws error if extension's not found.
StringThe extension.