Export (0) Print
Expand All

UnmanagedMemoryStream.PositionPointer Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a byte pointer to a stream based on the current position in the stream.

This property is not CLS-compliant.  

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

public byte* PositionPointer { get; set; }
J# does not support APIs that consume or return unsafe types.
JScript does not support APIs that consume or return unsafe types.

Property Value

A byte pointer.

Exception typeCondition

IndexOutOfRangeException

The current position is larger than the capacity of the stream.

ArgumentOutOfRangeException

The position is being set is not a valid position in the current stream.

IOException

The pointer is being set to a lower value than the starting position of the stream.

To return a pointer to the entire stream, set the Position property to zero, and then call this property.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft