[This is preliminary documentation and is subject to change.]
Sets the position within the current stream.
Namespace: Tools.IOtAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public override long Seek( long offset, SeekOrigin origin ) |
| Visual Basic |
|---|
Public Overrides Function Seek ( _ offset As Long, _ origin As SeekOrigin _ ) As Long |
| Visual C++ |
|---|
public: virtual long long Seek( long long offset, SeekOrigin origin ) override |
| F# |
|---|
abstract Seek : offset:int64 * origin:SeekOrigin -> int64 override Seek : offset:int64 * origin:SeekOrigin -> int64 |
| JScript |
|---|
public override function Seek( offset : long, origin : SeekOrigin ) : long |
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 |
|---|---|
| System.IO..::..IOException | An I/O error occurs. |
| System..::..NotSupportedException | The stream does not support seeking, such as if the stream is constructed from a pipe or console output. |
| System..::..ObjectDisposedException | Methods were called after the stream was closed. |
See Also
Version History
1.5.3
- Fix: ALways returns zero.