Share via


GraphicsStream.Seek(Int64,SeekOrigin) Method (Microsoft.DirectX)

Sets the position within the current stream.

Definition

Visual Basic Overrides Public Function Seek( _
    ByVal newposition As Long, _
    ByVal origin As SeekOriginLeave Site _
) As Long
C# public override long Seek(
    long newposition,
    SeekOriginLeave Site origin
);
C++ public:
virtual long Seek(
    long newposition,
    SeekOriginLeave Site origin
) override;
JScript public override function Seek(
    newposition : long,
    origin : SeekOriginLeave Site
) : long;

Parameters

newposition System.Int64
Value that represents the new position within the stream buffer.
origin System.IO.SeekOrigin
Member of the SeekOriginLeave Site enumeration that specifies where to begin seeking.

Return Value

System.Int64
New position within the stream buffer.

Remarks

Exceptions

ArgumentExceptionLeave Site

The new location is either less than 0 or greater than the stream buffer's data size.