다음을 통해 공유


SPFileStream.Seek Method

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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