Share via


System.Data.SqlTypes.SqlStreamChars.Seek Method (System.Int64, System.Object.SeekOrigin@)

Sets the position within the current stream. The assembly that contains this class has a friend relationship with SQLAccess.dll. It is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: System.Data.SqlTypes

Assembly: System.Data (in System.Data.dll)

Public MustOverride Function Seek (ByVal offset As Long, _
    ByRef origin As SeekOrigin) As Long
public abstract long Seek (long offset, ref SeekOrigin origin);

Parameters

Parameter

Description

offset

A byte offset relative to origin.

origin

A value of type SeekOrigin indicating the reference point from which to obtain the new position.

Return Value

The new position within the current stream.

Version Information

.NET Framework

Supported in: 2.0, 3.0, 3.5