MemoryMappedViewStream: SeekPosition

SeekPosition

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



 Public Function SeekPosition(
	  ByVal Offset As Currency,
	  ByVal Origin As SeekOrigin ) As Currency

Parameters

Offset
[ByVal] Currency. The point relative to Origin to begin seeking from.
Origin
[ByVal] SeekOrigin. Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type SeekOrigin.

Return Values

Currency -  The new position in the stream.

Exceptions

Exception Condition
IOExceptionAn attempt was made to seek before the beginning of the stream.
ArgumentOutOfRangeExceptionThe Offset value is larger than the maximum size of the stream.
ArgumentExceptionLoc is invalid.
ObjectDisposedExceptionThe stream is closed.

See Also

Project CorLib Overview

Class MemoryMappedViewStream Overview