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 屬性設定為零,然後呼叫這個屬性。

適用於