When overridden in a derived class, sets the position within the current stream.
Namespace: CryptSharp.UtilityAssembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax
public override long Seek( long offset, SeekOrigin origin )
Parameters
- offset
 - Type: 
System Int64
A byte offset relative to the origin parameter. 
- origin
 - Type: 
System.IO SeekOrigin
A value of type
SeekOrigin indicating the reference point used to obtain the new position.  
Return Value
The new position within the current stream.Exceptions
| Exception | Condition | 
|---|---|
| An I/O error occurs. | |
| The stream does not support seeking, such as if the stream is constructed from a pipe or console output. | |
| Methods were called after the stream was closed. | 
See Also