Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

RollingFileAppender.DeleteFile�Method�

Deletes the specified file if it exists.

[Visual�Basic]
Protected�Sub�DeleteFile( _
���ByVal fileName�As�String�_
)
[C#]
protected�void�DeleteFile(
���stringfileName
);

Parameters

fileName
The file to delete.

Remarks

Delete a file if is exists. The file is first moved to a new filename then deleted. This allows the file to be removed even when it cannot be deleted, but it still can be moved.

See Also

RollingFileAppender Class | log4net.Appender Namespace