Click or drag to resize

FileHelperGetUniqueFileName(String, String, Boolean) Method

Returns a unique file name in the directory of the given path, appending a number if the file exists. If lockFile is true, an empty file is created.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static string GetUniqueFileName(
	string filePath,
	string newExtension = "",
	bool lockFile = false
)

Parameters

filePath  String
 
newExtension  String  (Optional)
 
lockFile  Boolean  (Optional)
 

Return Value

String
See Also