Table of Contents

Method GenerateUniqueFilename

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GenerateUniqueFilename(string, string)

Generates a unique file name in the specified folder based on the provided file name template.

public static string GenerateUniqueFilename(string pathToFolder, string fileNameTemplate)

Parameters

pathToFolder string

The path to the folder where the file will be created.

fileNameTemplate string

The template for the file name, including extension.

Returns

string

A string containing a unique file name in the specified folder.