Op Englesch liesen Editéieren

Deelen iwwer


UnmanagedMemoryStream.PositionPointer Property

Definition

Important

This API is not CLS-compliant.

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

C#
[System.CLSCompliant(false)]
public byte* PositionPointer { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
C#
[System.CLSCompliant(false)]
public byte* PositionPointer { get; set; }
C#
public byte* PositionPointer { get; set; }

Property Value

Byte*

A byte pointer.

Attributes

Exceptions

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

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

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

The stream was initialized for use with a SafeBuffer. The PositionPointer property is valid only for streams that are initialized with a Byte pointer.

Remarks

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

Applies to

Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0