Share via


VSWebSite.GetUniqueFilename Method

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

'Declaration
Function GetUniqueFilename ( _
    bstrFolder As String, _
    bstrRoot As String, _
    bstrDesiredExt As String _
) As String
string GetUniqueFilename(
    string bstrFolder,
    string bstrRoot,
    string bstrDesiredExt
)
String^ GetUniqueFilename(
    [InAttribute] String^ bstrFolder, 
    [InAttribute] String^ bstrRoot, 
    [InAttribute] String^ bstrDesiredExt
)
abstract GetUniqueFilename : 
        bstrFolder:string * 
        bstrRoot:string * 
        bstrDesiredExt:string -> string 
function GetUniqueFilename(
    bstrFolder : String, 
    bstrRoot : String, 
    bstrDesiredExt : String
) : 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.

.NET Framework Security

See Also

Reference

VSWebSite Interface

VsWebSite Namespace

EnvDTE

Other Resources

Referencing Automation Assemblies and the DTE2 Object