[This is preliminary documentation and is subject to change.]
Checks if the file extension matches (case insensitive) the comma separated extensions provided.
Namespace:
OfficeClip.UtilsAssembly: OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0
Syntax
C# |
---|
public static string CheckFileExtension( string pattern, string fileName ) |
Visual Basic (Declaration) |
---|
Public Shared Function CheckFileExtension ( _ pattern As String, _ fileName As String _ ) As String |
Visual C++ |
---|
public: static String^ CheckFileExtension( String^ pattern, String^ fileName ) |
Parameters
- pattern
- Type: System..::.String
A comma separated allowed extensions
- fileName
- Type: System..::.String
The full name of the file