Web.WebFileDispatcher.EnumerateExtensions
Delphi
function EnumerateExtensions(const Extensions: string; WithDot: Boolean; Method: TExtensionMethod): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall EnumerateExtensions(const System::UnicodeString Extensions, bool WithDot, _di_TExtensionMethod Method);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Web.WebFileDispatcher.pas Web.WebFileDispatcher.hpp |
Web.WebFileDispatcher | Web.WebFileDispatcher |
Description
Verifies whether file extensions match the MIME types.
EnumerateExtensions routine verifies whether file extensions match the MIME types. Call EnumerateExtensions with the Extensions
, WithDot
, and Method
parameters. EnumerateExtensions returns True if the operation was successful, False otherwise.
Extensions
represents the string that holds one or more file extensions. If the string contains more than one file extension, then they must be separated by semicolon (for example, jpg;jpeg;png
).
WithDot
specifies whether the extensions are preceded by period (for example, .jpg
).
Method
represents a pointer to a method.