Version:
DeleteFile(IFileOperationsExecuter agent, string fileName) Method
Deletes the specified file if it exists.
Syntax
public
static
void DeleteFile(IFileOperationsExecuter agent, string fileName)
Parameters
- agent
- Type: IFileOperationsExecuter
The agent.
- fileName
- Type: string
The name of the file to delete.