PowerTCP SSH and SFTP for .NET
Seek Method (BaseStream)




The desired offset relative to the origin parameter.
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
'Declaration
 
Public Overrides Function Seek( _
   ByVal offset As Long, _
   ByVal origin As SeekOrigin _
) As Long
'Usage
 
Dim instance As BaseStream
Dim offset As Long
Dim origin As SeekOrigin
Dim value As Long
 
value = instance.Seek(offset, origin)
public override long Seek( 
   long offset,
   SeekOrigin origin
)
public: long Seek( 
   long offset,
   SeekOrigin origin
) override 
public:
int64 Seek( 
   int64 offset,
   SeekOrigin origin
) override 

Parameters

offset
The desired offset relative to the origin parameter.
origin
A value of type SeekOrigin, which acts as the seek reference point.

Return Value

The new position within the stream.
Exceptions
ExceptionDescription
System.NotSupportedExceptionAlways thrown by this method.
Remarks
This method is not supported, and always throws a NotSupportedException.
See Also

Reference

BaseStream Class
BaseStream Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic