Class FileTransferEventArgs
Cancelable event args class used by events related to file upload and download.
Inheritance
System.Object
FileTransferEventArgs
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class FileTransferEventArgs : CancelEventArgs
Constructors
FileTransferEventArgs()
Default constructor.
Declaration
public FileTransferEventArgs()
FileTransferEventArgs(Int64, Int64)
Creates instance with bytes downloaded versus total bytes to download.
Declaration
public FileTransferEventArgs(long bytesTransferred, long totalBytes)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | bytesTransferred | The number of bytes that have been downloaded. |
System.Int64 | totalBytes | The total number of bytes that will be downloaded. |
Properties
BytesTransferred
Gets the number of bytes that have been transferred.
Declaration
public long BytesTransferred { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
TotalBytes
Gets the total number of bytes.
Declaration
public long TotalBytes { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |