Sets the current position of this stream to the given value.

Namespace: VcClient.Test
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

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

Parameters

offset
Type: Int64
The point relative to origin from which to begin seeking.
origin
Type: SeekOrigin
Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type SeekOrigin.

Return Value

The new position in the stram.

Exceptions

ExceptionCondition
IOExceptionAn I/O error occurs
ArgumentExceptionAttempted seeking before the beginning of the stream.
ObjectDisposedExceptionMethods were called after the stream was closed.

See Also