SqlBytes.Buffer 屬性

定義

傳回內部緩衝區的參考。Returns a reference to the internal buffer.

public:
 property cli::array <System::Byte> ^ Buffer { cli::array <System::Byte> ^ get(); };
public byte[] Buffer { get; }
public byte[]? Buffer { get; }
member this.Buffer : byte[]
Public ReadOnly Property Buffer As Byte()

屬性值

Byte[]

內部緩衝區的參考。A reference to the internal buffer. 如果是在 Unmanaged 指標上建立的 SqlBytes 執行個體,則會傳回內部緩衝區的 Managed 複本。For SqlBytes instances created on top of unmanaged pointers, it returns a managed copy of the internal buffer.

備註

傳回 null 值的 null 參考 SqlBytesReturns a null reference for null value SqlBytes.

InvalidOperationException針對以資料流程包裝的實例擲回 SqlBytesThrows an InvalidOperationException for stream-wrapped instances of SqlBytes.

適用於

另請參閱