共用方式為


UnmanagedMemoryStream.PositionPointer 屬性

定義

重要

此 API 不符合 CLS 規範。

根據串流中目前的位置,取得或設定一個位元組指標指向串流。

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

屬性值

Byte*

一個位元指標。

屬性

例外狀況

目前位置大於溪流容量。

目前該位置設定在目前流程中並不有效。

指標被設定為比串流起始位置更低的值。

串流初始化是為了搭配 SafeBuffer. 此 PositionPointer 特性僅適用於以 Byte 指標初始化的串流。

備註

若要回傳整個串流的指標,請將屬性 Position 設為零,然後呼叫這個屬性。

適用於