Adds the extension to the file name.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
Parameters
- fileName
- Type: System..::.String
A file name with the path.
- suffix
- Type: System..::.String
An extension.
Return Value
Gets the file name with a added extension.
Remarks
Method returns the file name fileName with the suffix suffix.
The suffix is appended between the filename and his extension, before '.'.
When the file name is given with a path, the path is preserved.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | fileName is nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::.ArgumentNullException | suffix is nullNothingnullptra null reference (Nothing in Visual Basic). |