Share via


SPFileStream.Seek method

Sets the current position of this stream to the given value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function Seek ( _
    offset As Long, _
    origin As SeekOrigin _
) As Long
'Usage
Dim instance As SPFileStream
Dim offset As Long
Dim origin As SeekOrigin
Dim returnValue As Long

returnValue = instance.Seek(offset, origin)
public override long Seek(
    long offset,
    SeekOrigin origin
)

Parameters

  • offset
    Type: System.Int64

    The point relative to origin from which to begin seeking.

  • origin
    Type: System.IO.SeekOrigin

    Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type System.IO.SeekOrigin.

Return value

Type: System.Int64
The new position in the stream.

See also

Reference

SPFileStream class

SPFileStream members

Microsoft.SharePoint namespace