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 type | Condition |
---|
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
See Also