Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

XtsStream.Seek Method

Namespace: Rebex.Security
Assembly: Rebex.Security.dll (version 7.0.9147)

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 origin parameter.

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
Stream.Seek(Int64, SeekOrigin)
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.

In This Article
  • Seek(Int64, SeekOrigin)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies