MimeTypeMapTryGetMimeType Method
Tries to get the type of the MIME from the provided string.
Namespace: GenerativeAI.CoreAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public static bool TryGetMimeType(
string str,
out string mimeType
)
- str String
- The filename or extension.
- mimeType String
- The variable to store the MIME type.
BooleanThe MIME type.