Click or drag to resize

IFile Interface

IT Hit User File System
Represents a file in the user file system.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 3.1.7115.0-Beta
Syntax
public interface IFile : IFileSystemItem

The IFile type exposes the following members.

Methods
  NameDescription
Public methodCloseAsync
Called when a file is being closed.
Public methodCode exampleDeleteAsync
Called when a file or a folder is being deleted from the user file system.
(Inherited from IFileSystemItem.)
Public methodDeleteCompletionAsync
Called when the delete operation is completed.
(Inherited from IFileSystemItem.)
Public methodGetMetadataAsync
Gets information about a file or a folder in a user file system, such as name, creation and modification date, etc.
(Inherited from IFileSystemItem.)
Public methodCode exampleMoveToAsync
Called when a file or a folder is being moved to a new location or renamed.
(Inherited from IFileSystemItem.)
Public methodMoveToCompletionAsync
Called when a file or a folder move or rename operation is completed.
(Inherited from IFileSystemItem.)
Public methodOpenAsync
Called when a file is being opened.
Public methodCode exampleReadAsync
Transfers data from remote sorage to the user file system.
Public methodValidateDataAsync
Validates data after reading from remote storage.
Public methodWriteAsync
Updates this file in the remote storage.
Top
Remarks
On Windows all methods of this interface has 60 sec timout. To process longer requests report progress by calling the ReportProgress(Int64, Int64) method of the IResultContext interface passed as a parameter to each method. In case of the ReadAsync(Stream, Int64, Int64, ITransferDataOperationContext, ITransferDataResultContext) method you can also write the data to the output stream or call the ReturnData(Byte, Int64, Int64) method to reset the timeout.
See Also