XtsStream.Seek Method
Namespace: Rebex.Security
Assembly: Rebex.Security.dll (version 7.0.9119)
Seek(Int64, SeekOrigin)
Sets the position within the stream.
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
Int64 | offset | A byte offset relative to the |
SeekOrigin | origin | A value of type SeekOrigin indicating the reference point used to obtain the new position. |
Returns
Type | Description |
---|---|
Int64 | The new position within the stream. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | An I/O error occurs. |
ObjectDisposedException | Methods were called after the stream was closed. |
InvalidOperationException | Position is set to a negative number or is greater than the stream length. If you need to increase stream length, use the SetLength method first. |