PowerTCP Mail for .NET
Seek Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > SegmentedStream Class : Seek Method




offset
A byte offset relative to origin.
origin
A value of type SeekOrigin indicating the reference point used to obtain the new position.
Seeks a specific position in the stream.

Syntax

Visual Basic (Declaration) 
Public Overrides Function Seek( _
   ByVal offset As Long, _
   ByVal origin As SeekOrigin _
) As Long
Visual Basic (Usage)Copy Code
Dim instance As SegmentedStream
Dim offset As Long
Dim origin As SeekOrigin
Dim value As Long
 
value = instance.Seek(offset, origin)
C# 
public override long Seek( 
   long offset,
   SeekOrigin origin
)
Managed Extensions for C++ 
public: long Seek( 
   long offset,
   SeekOrigin origin
) override 
C++/CLI 
public:
int64 Seek( 
   int64 offset,
   SeekOrigin origin
) override 

Parameters

offset
A byte offset relative to origin.
origin
A value of type SeekOrigin indicating the reference point used to obtain the new position.

Return Value

The number of bytes that were sought.

Remarks

Returns value of CoreStream.Seek. TcpStream.Seek throws a NotSupportedException.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.