Creates a unique file name with the specified parameters.

Namespace: FlightPlan.Optimizer
Assembly: FlightPlanOptimizer (in FlightPlanOptimizer.exe) Versión: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static string CreateUniqueFileName(
	string directoryPath,
	string fileName,
	string fileExtension,
	uint digits
)
Visual Basic
Public Shared Function CreateUniqueFileName ( _
	directoryPath As String, _
	fileName As String, _
	fileExtension As String, _
	digits As UInteger _
) As String
Visual C++
public:
static String^ CreateUniqueFileName(
	String^ directoryPath, 
	String^ fileName, 
	String^ fileExtension, 
	unsigned int digits
)

Parameters

directoryPath
Type: System..::..String
The directory path.
fileName
Type: System..::..String
The file name.
fileExtension
Type: System..::..String
The file extension.
digits
Type: System..::..UInt32
A number between [1-9] of digits to create the identifier. E.g.. digits = 3, filename with identifier betwee [000-999]

Return Value

A file path with the next representation [directoryPath][fileName]_[identifier with x digits][fileExtension]

See Also