System.Security.Cryptography.CryptoStream Members

The members of System.Security.Cryptography.CryptoStream are listed below.

See Also: Inherited members from System.IO.Stream

Public Constructors

Initializes a new instance of the System.Security.Cryptography.CryptoStream class with a target data stream, the transformation to use, and the mode of the stream.

Public Properties

[read-only]
override
CanReadbool.

Gets a value indicating whether the current System.Security.Cryptography.CryptoStream is readable.

[read-only]
override
CanSeekbool.

Gets a value indicating whether you can seek within the current System.Security.Cryptography.CryptoStream.

[read-only]
override
CanWritebool.

Gets a value indicating whether the current System.Security.Cryptography.CryptoStream is writable.

[read-only]
HasFlushedFinalBlockbool.

Gets a value indicating whether the final buffer block has been written to the underlying stream.

[read-only]
override
Lengthlong.

Gets the length in bytes of the stream.

override
Positionlong.

Gets or sets the position within the current stream.

Public Methods

Clear()

Releases all resources used by the System.Security.Cryptography.CryptoStream.

override
Close()
Documentation for this section has not yet been entered.
Finalize()
Documentation for this section has not yet been entered.
override
Flush()

Clears all buffers for the current stream and causes any buffered data to be written to the underlying device.

override
FlushAsync(System.Threading.CancellationToken) : System.Threading.Tasks.Task

Clears all buffers for the current stream asynchronously, causes any buffered data to be written to the underlying device, and monitors cancellation requests.

FlushFinalBlock()

Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.

override
Read(byte[], int, int) : int

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

override
ReadAsync(byte[], int, int, System.Threading.CancellationToken) : System.Threading.Tasks.Task<int>

Reads a sequence of bytes from the current stream asynchronously, advances the position within the stream by the number of bytes read, and monitors cancellation requests.

override
Seek(long, System.IO.SeekOrigin) : long

Sets the position within the current stream.

override
SetLength(long)

Sets the length of the current stream.

override
Write(byte[], int, int)

Writes a sequence of bytes to the current System.Security.Cryptography.CryptoStream and advances the current position within the stream by the number of bytes written.

override
WriteAsync(byte[], int, int, System.Threading.CancellationToken) : System.Threading.Tasks.Task

Writes a sequence of bytes to the current stream asynchronously, advances the current position within the stream by the number of bytes written, and monitors cancellation requests.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.Security.Cryptography.CryptoStream and optionally releases the managed resources.