VSWebSite.GetUniqueFilename Method (String, String, String)

 

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

Namespace:   VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

string GetUniqueFilename(
    string bstrFolder,
    string bstrRoot,
    string bstrDesiredExt
)
String^ GetUniqueFilename(
    String^ bstrFolder,
    String^ bstrRoot,
    String^ bstrDesiredExt
)
abstract GetUniqueFilename : 
        bstrFolder:string *
        bstrRoot:string *
        bstrDesiredExt:string -> string
Function GetUniqueFilename (
    bstrFolder As String,
    bstrRoot As String,
    bstrDesiredExt As String
) As String

Parameters

  • bstrFolder
    Type: System.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
    Type: System.String

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

  • bstrDesiredExt
    Type: System.String

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

Return Value

Type: System.String

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

See Also

EnvDTE
VSWebSite Interface
VsWebSite Namespace
Referencing Automation Assemblies and the DTE2 Object

Return to top