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
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also