Click or drag to resize

IFileSystemItemWindowsDeleteCompletionAsync Method

IT Hit User File System
Called when the delete operation is completed.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.3.27213.0
Syntax
Task DeleteCompletionAsync(
	IOperationContext operationContext,
	IInSyncStatusResultContext inSyncResultContext,
	CancellationToken cancellationToken = null
)

Parameters

operationContext
Type: ITHit.FileSystemIOperationContext
Provides information about the environment.
inSyncResultContext
Type: ITHit.FileSystemIInSyncStatusResultContext
Provides methods for reporting operation progress and reporting status to the platform. If the SetInSync property is set to true the item is considered deleted successfully and the [!:EngineWindows.ProcessAsync] method will not call this method again. The SetInSync property is true by default.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: Task
A task object that can be awaited.
Remarks

This method is called after you call the ReturnConfirmationResult method from the DeleteAsync(IOperationContext, IConfirmationResultContext, CancellationToken) method implementation or the DeleteAsync(IOperationContext, IConfirmationResultContext, CancellationToken) method completes without exceptions. This method is NOT called if the ReturnErrorResult(CloudFileStatus) is called from the DeleteAsync(IOperationContext, IConfirmationResultContext, CancellationToken) or any exception is thrown in it.

Setting the SetInSync property of the inSyncResultContext parameter to false has the same affect as throwing an exception inside this method.

See Also