Compartilhar via


ResourceStream.Seek Method

Sets the position in the current stream.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As ResourceStream
Dim offset As Long
Dim origin As SeekOrigin
Dim returnValue As Long

returnValue = instance.Seek(offset, origin)

Syntax

'Declaration
Public Overrides Function Seek ( _
    offset As Long, _
    origin As SeekOrigin _
) As Long
public override long Seek (
    long offset,
    SeekOrigin origin
)
public:
virtual long long Seek (
    long long offset, 
    SeekOrigin origin
) override
public long Seek (
    long offset, 
    SeekOrigin origin
)
public override function Seek (
    offset : long, 
    origin : SeekOrigin
) : long

Parameters

  • offset
    A byte offset relative to the origin parameter.
  • origin
    A value indicating the reference point used to obtain the new position.

Return Value

The new position in the current stream.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ResourceStream Class
ResourceStream Members
Microsoft.EnterpriseManagement.Common Namespace