Share via


EncoderStream.Seek Method

The Seek method moves the current position.

Namespace: Microsoft.Exchange.Data.Mime.Encoders
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Overrides NotOverridable Function Seek ( _
    offset As Long, _
    origin As SeekOrigin _
) As Long
public override sealed long Seek (
    long offset,
    SeekOrigin origin
)
public:
virtual long long Seek (
    long long offset, 
    SeekOrigin origin
) override sealed
public final long Seek (
    long offset, 
    SeekOrigin origin
)
public override final function Seek (
    offset : long, 
    origin : SeekOrigin
) : long

Parameters

  • offset
    The possibly negative number of bytes to move from the position specified by origin.
  • origin
    A SeekOrigin enumeration value indicating the location used to calculate the final seek position.

Return Value

The Seek method returns the current position after the seek operation has completed.

Exceptions

Exception type Condition
NotSupportedException

The stream does not support seeking.

ArgumentException

The requested seek position is less than zero.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003