Deletes file in areas with a high degree of concurrent file access (i.e. caching, logging)
This solves file concurrency issues under heavy load.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static bool DeleteFileWithWait( string filename, short waitInMilliseconds, short maxAttempts ) |
Visual Basic |
---|
Public Shared Function DeleteFileWithWait ( filename As String, waitInMilliseconds As Short, maxAttempts As Short ) As Boolean |
Parameters
- filename
- Type: System..::..String
String
- waitInMilliseconds
- Type: System..::..Int16
Int16
- maxAttempts
- Type: System..::..Int16
Int16