GraphicsStream.Seek Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the position within the current stream.
Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Overrides Function Seek ( _
newposition As Long, _
origin As SeekOrigin _
) As Long
'Usage
Dim instance As GraphicsStream
Dim newposition As Long
Dim origin As SeekOrigin
Dim returnValue As Long
returnValue = instance.Seek(newposition, _
origin)
public override long Seek(
long newposition,
SeekOrigin origin
)
public:
virtual long long Seek(
long long newposition,
SeekOrigin origin
) override
abstract Seek :
newposition:int64 *
origin:SeekOrigin -> int64
override Seek :
newposition:int64 *
origin:SeekOrigin -> int64
Parameters
- newposition
Type: System.Int64
The new position within the stream buffer.
- origin
Type: System.IO.SeekOrigin
One of the SeekOrigin values that specifies where to begin seeking.
Return Value
Type: System.Int64
New position within the stream buffer.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The new location is either less than 0 or greater than the stream buffer's data size. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0