Click or drag to resize

BinaryWriterSeek Method

Sets the position within the current file.

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

Parameters

offset  Int32
A byte offset relative to origin.
origin  SeekOrigin
A field of SeekOrigin indicating the reference point from which the new position is to be obtained.

Return Value

Int64
The position with the current file.
Exceptions
ExceptionCondition
IOExceptionThe file pointer was moved to an invalid location.
ArgumentExceptionThe CrestronIO.SeekOrigin value is invalid.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also