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*

字节指针。

属性

例外

当前位置大于流的容量。

所设置的位置不是当前流中的有效位置。

指针被设置为比流的开始位置小的值。

流已初始化,可用于 SafeBufferPositionPointer 属性仅对使用 Byte 指针初始化的流有效。

注解

若要返回指向整个流的指针,请将 属性 Position 设置为零,然后调用此属性。

适用于