Method Seek
Seek(Int64, SeekOrigin)
Sets the position within the current stream.
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
System. |
offset | A byte offset relative to the origin parameter. |
System. |
origin | A value of type SeekOrigin indicating the reference point used to obtain the new position. |
Returns
Type | Description |
---|---|
System. |
Position of the byte(s) within the current stream. |
Overrides
System.IO.Stream.Seek(System.Int64, System.IO.SeekOrigin)
Remarks
CacheStream does not support seeking.
Exceptions
Type | Condition |
---|---|
System. |
Stream does not support seeking. |