UnmanagedMemoryStream.Position Property

July 28, 2014

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the current position in a stream.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public override long Position { get; set; }

Property Value

Type: System.Int64
The current position in the stream.

ExceptionCondition
ObjectDisposedException

The stream is closed.

ArgumentOutOfRangeException

The position is set to a value that is less than zero, or the position is larger than MaxValue or results in overflow when added to the current pointer.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft