Class PieceHashedEventArgs
Provides the data needed to handle a PieceHashed event
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent.Client
Assembly: MonoTorrent.dll
Syntax
public sealed class PieceHashedEventArgs : TorrentEventArgs
Properties
HashPassed
The value of whether the piece passed or failed the hash check
Declaration
public bool HashPassed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PieceIndex
The index of the piece which was hashed
Declaration
public int PieceIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Progress
If the TorrentManager is in the hashing state then this returns a value between 0 and 1 indicating how complete the hashing progress is. If the manager is in the Downloading state then this will return '1' as the torrent will have been fully hashed already. If some files in the torrent were marked as 'DoNotDownload' during the initial hash, and those files are later marked as downloadable, then this will still return '1'.
Declaration
public double Progress { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |