SqlBytes.Buffer Property


Returns a reference to the internal buffer.

 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()

Property Value


A reference to the internal buffer. For SqlBytes instances created on top of unmanaged pointers, it returns a managed copy of the internal buffer.


Returns a null reference for null value SqlBytes.

Throws an InvalidOperationException for stream-wrapped instances of SqlBytes.

Applies to

See also