Share via


SerialPort.Seek Method

Sets the position within the current stream.

Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public override long Seek (
         long offset,
         SeekOrigin origin
)

Parameters

  • offset
    A byte offset relative to the origin parameter.
  • origin
    A value that indicates the reference point used to obtain the new position.

Return Value

The new position within the current stream.

Remarks

This implementation throws NotSupportedException in all cases.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

SerialPort Class
SerialPort Members
System.IO.Ports Namespace