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




offset
The new position within the stream
origin
A value of type SeekOrigin, which acts as the seek reference point.
Sets the position within the current Stream to the specified value. Always throws a NotSupportedException.

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 EnhancedStream
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
The new position within the stream
origin
A value of type SeekOrigin, which acts as the seek reference point.

Exceptions

ExceptionDescription
System.NotSupportedExceptionAlways thrown by this method.

Remarks

This method is not supported, and always throws a NotSupportedException.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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