Click or drag to resize

ProjectedFileSystemDeleteFile Method

Enables a provider to delete an item that has been cached on the local file system.

Namespace:  ShellBoost.Core.ProjFS
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public virtual PRJ_UPDATE_FAILURE_CAUSES DeleteFile(
	string filePath,
	PRJ_UPDATE_TYPES types = PRJ_UPDATE_TYPES.PRJ_UPDATE_ALLOW_DIRTY_METADATA|PRJ_UPDATE_TYPES.PRJ_UPDATE_ALLOW_DIRTY_DATA|PRJ_UPDATE_TYPES.PRJ_UPDATE_ALLOW_TOMBSTONE|PRJ_UPDATE_TYPES.PRJ_UPDATE_ALLOW_READ_ONLY,
	bool throwOnError = true
)

Parameters

filePath
Type: SystemString
A string specifying the path, relative to the virtualization root, to the file or directory to be deleted.
types (Optional)
Type: ShellBoost.Core.ProjFSPRJ_UPDATE_TYPES
Flags to control the delete operation should be allowed given the state of the file.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be thrown otherwise the return value may be null.

Return Value

Type: PRJ_UPDATE_FAILURE_CAUSES
A value that describes the reason for the failure, if any.
See Also