Click or drag to resize

EngineWindowsFilterAsync Method

IT Hit User File System
Allows filtering file system items that should NOT be synched to the remote storage.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 4.4.14419.0
public override Task<bool> FilterAsync(
	OperationType operationType,
	string userFileSystemPath,
	string userFileSystemPathNew = null,
	IOperationContext operationContext = null


Type: ITHit.FileSystemOperationType
File system operation type: OperationType.
Type: SystemString
File system item path. In case of move and rename operation this is the source path.
userFileSystemPathNew (Optional)
Type: SystemString

[Missing <param name="userFileSystemPathNew"/> documentation for "M:ITHit.FileSystem.Windows.EngineWindows.FilterAsync(ITHit.FileSystem.OperationType,System.String,System.String,ITHit.FileSystem.IOperationContext)"]

operationContext (Optional)
Type: ITHit.FileSystemIOperationContext
Provides information about the environment.

Return Value

Type: TaskBoolean
True if the item must NOT be synched to the remote storage. False otherwise.


IEngineFilterAsync(OperationType, String, String, IOperationContext)

This method is called before calling GetFileSystemItemAsync(String, FileSystemItemType, Byte) as well as each IFile, IFolder and [!:ILock] interface methods. If this method returns true, the method is NOT called.

You can use this method to exclude items from synchronization with the remote storage. For example you can exclude temporary files, system files, Microsoft Office lock files, backup files, etc.

The default Engine implementation returns false for all items.

See Also