MimeTypeMapTryGetMimeType Method

Tries to get 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 bool TryGetMimeType(
	string str,
	out string mimeType
)

Parameters

str  String
The filename or extension.
mimeType  String
The variable to store the MIME type.

Return Value

Boolean
The MIME type.

Exceptions

See Also