HashStream Properties |
The HashStream type exposes the following members.
Name | Description | |
---|---|---|
![]() | Algorithm |
Algorithm to use to calculate hash.
|
![]() | BaseStream |
Base stream.
(Inherited from WrapperStream.) |
![]() | CalculatedHash |
Calculated hash for the stream.
This value is set only after the stream is closed.
|
![]() | CanRead |
Gets a value indicating whether the current stream supports reading.
True if the stream supports reading; otherwise, false.
(Inherited from WrapperStream.) |
![]() | CanSeek |
Gets a value indicating whether the current stream supports seeking.
HashStream does not support seeking, this will always be false.
(Overrides WrapperStreamCanSeek.) |
![]() | CanTimeout |
Gets a value that determines whether the current stream can time out.
(Inherited from Stream.) |
![]() | CanWrite |
Gets a value indicating whether the current stream supports writing.
True if the stream supports writing; otherwise, false.
(Inherited from WrapperStream.) |
![]() | CurrentPosition |
Current position in the stream.
|
![]() | ExpectedHash |
Expected hash value. Compared against CalculatedHash upon Close().
If the hashes are different, an ClientException is thrown.
|
![]() | ExpectedLength |
Expected length of stream.
|
![]() | FinishedHashing |
True if hashing is finished and no more hashing should be done;
otherwise false.
|
![]() | Length |
Gets the overridden length used to construct the HashStream
(Overrides WrapperStreamLength.) |
![]() | Position |
Gets or sets the position within the current stream.
HashStream does not support seeking, attempting to set Position
will throw NotSupportedException.
(Overrides WrapperStreamPosition.) |
![]() | ReadTimeout |
Gets or sets a value, in miliseconds, that determines how long the stream
will attempt to read before timing out.
(Inherited from WrapperStream.) |
![]() | WriteTimeout |
Gets or sets a value, in miliseconds, that determines how long the stream
will attempt to write before timing out.
(Inherited from WrapperStream.) |