PathHelpersFormatExtension Method
Ensures that the provided extension is in the provided format: .exe
Namespace: SnapDB.IOAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static string FormatExtension(
string extension
)
Public Shared Function FormatExtension (
extension As String
) As String
public:
static String^ FormatExtension(
String^ extension
)
SnapDB.IO.PathHelpers.FormatExtension = function(extension);
- extension String
- the extension to format. Can be *.exe, or .exe, or exe
String
A valid extension.
Throws a series of exceptions if the extension is invalid.