MultiBufferMemoryStream.Seek Method

Windows Runtime Azure Storage Client Library

Sets the position within the current stream.

Namespace: Microsoft.WindowsAzure.Storage.Core
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As MultiBufferMemoryStream
Dim offset As Long
Dim origin As SeekOrigin
Dim returnValue As Long

returnValue = instance.Seek(offset, origin)

Syntax

Visual Basic
Public Overrides Function Seek ( _
	offset As Long, _
	origin As SeekOrigin _
) As Long
C#
public override long Seek (
	long offset,
	SeekOrigin origin
)
C++
public:
virtual long long Seek (
	long long offset, 
	SeekOrigin origin
) override
J#
public long Seek (
	long offset, 
	SeekOrigin origin
)
JScript
public override function Seek (
	offset : long, 
	origin : SeekOrigin
) : long

Parameters

offset

A byte offset relative to the origin parameter.

origin

A value of type System.IO.SeekOrigin indicating the reference point used to obtain the new position.

Return Value

The new position within the current stream.

Exceptions

Exception typeCondition
ArgumentException

Thrown if offset is invalid for SeekOrigin.

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 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also