ImageMan.Net Version 3 Summer 2012 Release
Seek Method
See Also  Send Feedback
DTI.ImageMan Namespace > SeekableReadOnlyStream Class : Seek Method





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

Glossary Item Box

Seeks in stream. For this stream can be very expensive because entire base stream can be dumped into buffering stream if SeekOrigin.End is used.

Syntax

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

Parameters

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

Return Value

The new position within the current stream

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.