Share via


VSWebSite.GetUniqueFilename(String, String, String) Method

Definition

Returns a filename that is unique within the specified folder, using the specified root name and file name extension.

public:
 System::String ^ GetUniqueFilename(System::String ^ bstrFolder, System::String ^ bstrRoot, System::String ^ bstrDesiredExt);
[System.Runtime.InteropServices.DispId(7)]
public string GetUniqueFilename (string bstrFolder, string bstrRoot, string bstrDesiredExt);
[<System.Runtime.InteropServices.DispId(7)>]
abstract member GetUniqueFilename : string * string * string -> string
Public Function GetUniqueFilename (bstrFolder As String, bstrRoot As String, bstrDesiredExt As String) As String

Parameters

bstrFolder
String

The relative path to the folder where the file name must be unique. Use "/" as the path separator; do not start or end the folder name with a "/" character.

bstrRoot
String

The base name for the file, such as "default" or "HomePage".

bstrDesiredExt
String

The extension for the file name, including the dot, such as ".aspx" or ".xml".

Returns

A file name with an extension that is unique within the specified folder.

Attributes

Applies to