Click or drag to resize

MemoryStreamSeek Method

Sets the position within the current stream to the specified value.

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

Parameters

offset  Int64
The new position within the stream. This is relative to the loc parameter, and can be positive or negative.
loc  SeekOrigin
A value of type CrestronIO.SeekOrigin, which acts as the seek reference point.

Return Value

Int64
The new position within the stream, calculated by combining the initial reference point and the offset.
Exceptions
ExceptionCondition
IOException Seeking is attempted before the beginning of the stream.
ArgumentOutOfRangeException offset is greater than System.Int32.MaxValue.
ArgumentException There is an invalid SeekOrigin.
ObjectDisposedException The current stream instance is closed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also