PowerWEB File Upload for ASP.NET
FileRenamePattern Property
See Also  Send comments on this topic.
Dart.FileUpload Namespace > UploadManager Class : FileRenamePattern Property



The naming pattern to use in conjunction with the FileExistsBehavior.Rename. For example, if the uploaded duplicate file is named Myfile.txt, and the pattern is f(n)x, it will be renamed Myfile(001).txt since f is the base file name, n is an incremented number, and x is the file extension.

Syntax

Visual Basic (Declaration) 
<DartDescriptionAttribute("The naming pattern to use in conjunction with the FileExistsBehavior.Rename.  For example, if the uploaded duplicate file is named Myfile.txt, and the pattern is f(n)x, it will be renamed Myfile(001).txt since f is the base file name, n is an incremented number, and x is the file extension.")>
<DefaultValueAttribute()>
Public Property FileRenamePattern As String
Visual Basic (Usage)Copy Code
Dim instance As UploadManager
Dim value As String
 
instance.FileRenamePattern = value
 
value = instance.FileRenamePattern
C# 
[DartDescriptionAttribute("The naming pattern to use in conjunction with the FileExistsBehavior.Rename.  For example, if the uploaded duplicate file is named Myfile.txt, and the pattern is f(n)x, it will be renamed Myfile(001).txt since f is the base file name, n is an incremented number, and x is the file extension.")]
[DefaultValueAttribute()]
public string FileRenamePattern {get; set;}
C++/CLI 
[DartDescriptionAttribute("The naming pattern to use in conjunction with the FileExistsBehavior.Rename.  For example, if the uploaded duplicate file is named Myfile.txt, and the pattern is f(n)x, it will be renamed Myfile(001).txt since f is the base file name, n is an incremented number, and x is the file extension.")]
[DefaultValueAttribute()]
public:
property String^ FileRenamePattern {
   String^ get();
   void set (    String^ value);
}

Property Value

The default value is f(n)x.

Remarks

This property has no effect if the FileExistsBehavior is not set to Rename.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.3
© 2012 Dart Communications. All Rights Reserved.