Deletes the specified file.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public virtual void DeleteFile( IFileInfo file ) |
| Visual Basic |
|---|
Public Overridable Sub DeleteFile ( file As IFileInfo ) |
Parameters
- file
- Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to delete.
Implements
IFileManager..::..DeleteFile(IFileInfo)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown when file is null. |
| DotNetNuke.Services.FileSystem..::..FolderProviderException | Thrown when the underlying system throw an exception. |