SafeBuffer.ByteLength 屬性

定義

重要

此 API 不符合 CLS 規範。

取得緩衝區的大小,以位元組為單位。

public:
 property System::UInt64 ByteLength { System::UInt64 get(); };
[System.CLSCompliant(false)]
public ulong ByteLength { get; }
[<System.CLSCompliant(false)>]
member this.ByteLength : uint64
Public ReadOnly Property ByteLength As ULong

屬性值

記憶體緩衝區中的位元組數目。

屬性

例外狀況

尚未呼叫 Initialize 方法。

適用於