Szerkesztés

Megosztás a következőn keresztül:


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.

public:
 property System::Byte* PositionPointer { System::Byte* get(); void set(System::Byte* value); };
[System.CLSCompliant(false)]
public byte* PositionPointer { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
[System.CLSCompliant(false)]
public byte* PositionPointer { get; set; }
public byte* PositionPointer { get; set; }
[<System.CLSCompliant(false)>]
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.PositionPointer : nativeptr<byte> with get, set
[<System.CLSCompliant(false)>]
member this.PositionPointer : nativeptr<byte> with get, set
member this.PositionPointer : nativeptr<byte> with 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