Compartilhar 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
'Usage
Dim instance As EncoderStream
Dim offset As Long
Dim origin As SeekOrigin
Dim returnValue As Long

returnValue = instance.Seek(offset, origin)
public override sealed long Seek(
    long offset,
    SeekOrigin origin
)

Parameters

  • offset
    Type: System.Int64

    The possibly negative number of bytes to move from the position specified by origin.

Return value

Type: System.Int64
The Seek method returns the current position after the seek operation has completed.

Exceptions

Exception Condition
NotSupportedException

The stream does not support seeking.

ArgumentException

The requested seek position is less than zero.

See also

Reference

EncoderStream class

EncoderStream members

Microsoft.Exchange.Data.Mime.Encoders namespace