Microsoft DirectX 9.0 SDK Update (October 2004)

GraphicsStream.Seek Method

Language:

Note: This documentation is preliminary and is subject to change.

Sets the position within the current stream.

Definition

Visual Basic .NET Overrides Public Function Seek( _
    ByVal newposition As Long, _
    ByVal origin As SeekOrigin _
) As Long
C# public override long Seek(
    long newposition,
    SeekOrigin origin
);
Managed C++ public: long Seek(
    long newposition,
    SeekOrigin origin
);
JScript .NET public override function Seek(
    newposition : long,
    origin : SeekOrigin
) : long;

Parameters

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

Return Value

System.Int64 . New position within the stream buffer.

Remarks

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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center