System.IO.UnmanagedMemoryStream.Position Property

Gets or sets the current position in a stream.

Syntax

public override long Position { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

When a stream is initialized, this property is set to zero.

Although you can set the position of the stream beyond the stream's capacity, you will not be able to access that area using the UnmanagedMemoryStream.Read(Byte[], int, int) and UnmanagedMemoryStream.Write(Byte[], int, int) methods. UnmanagedMemoryStream.Read(Byte[], int, int) will return 0 and UnmanagedMemoryStream.Write(Byte[], int, int) will throw a NotSupportedException. This support is primarily for design and code compatibility with basic stream operations.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0