Class SeekableCryptoStream
CryptoStream implementation that supports seeking.
Inherited Members
Namespace: Tableau.Migration.Content.Files
Assembly: Tableau.Migration.dll
Syntax
public sealed class SeekableCryptoStream : CryptoStream, IAsyncDisposable, IDisposable
Constructors
SeekableCryptoStream(Stream, ICryptoTransform, CryptoStreamMode, bool)
Creates a new SeekableCryptoStream instance.
Declaration
public SeekableCryptoStream(Stream innerStream, ICryptoTransform cryptoTransform, CryptoStreamMode mode, bool leaveOpen)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | innerStream | The inner stream to encrypt or decrypt. |
| ICryptoTransform | cryptoTransform | The encryption for the stream. |
| CryptoStreamMode | mode | The read/write mode for the stream. |
| bool | leaveOpen | Whether this instance should take ownership of the inner stream. |
Properties
CanSeek
Gets a value indicating whether you can seek within the current CryptoStream.
Declaration
public override bool CanSeek { get; }
Property Value
| Type | Description |
|---|---|
| bool | Always false. |
Overrides
Length
Gets the length in bytes of the stream.
Declaration
public override long Length { get; }
Property Value
| Type | Description |
|---|---|
| long | This property is not supported. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | This property is not supported. |
Position
Gets or sets the position within the current stream.
Declaration
public override long Position { get; set; }
Property Value
| Type | Description |
|---|---|
| long | This property is not supported. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | This property is not supported. |
Methods
Seek(long, SeekOrigin)
Sets the position within the current stream.
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
| Type | Name | Description |
|---|---|---|
| long | offset | A byte offset relative to the |
| SeekOrigin | origin | A SeekOrigin object indicating the reference point used to obtain the new position. |
Returns
| Type | Description |
|---|---|
| long | This method is not supported. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | This method is not supported. |