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.Int64The possibly negative number of bytes to move from the position specified by origin.
origin
Type: System.IO.SeekOriginA SeekOrigin enumeration value indicating the location used to calculate the final seek position.
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. |