Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / GetUniqueFileName Method
File name with fully qualified path
In This Topic
    GetUniqueFileName Method
    In This Topic
    Gets a unique file name based on the given file name. If a file with same name already exists in the given path it will add numbers to the name until a unique name is found
    Syntax
    public static string GetUniqueFileName( 
       string fileNameWithPath
    )

    Parameters

    fileNameWithPath
    File name with fully qualified path

    Return Value

    Unique file name
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also