Click or drag to resize

StreamSeek Method

When overridden in a derived class, sets the position within the current stream.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract long Seek(
	long offset,
	SeekOrigin origin
)

Parameters

offset  Int64
A byte offset relative to the origin parameter.
origin  SeekOrigin
A value of type CrestronIO.SeekOrigin indicating the reference point used to obtain the new position.

Return Value

Int64
The new position within the current stream.
Exceptions
ExceptionCondition
ObjectDisposedException Methods were called after the stream was closed.
NotSupportedExceptionThe stream does not support seeking, such as if the stream is constructed from a pipe or console output.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also