SqlBytes::Buffer Property

 

Returns a reference to the internal buffer.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public:
property array<unsigned char>^ Buffer {
	array<unsigned char>^ get();
}

Property Value

Type: array<System::Byte>^

Returns 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.

.NET Framework
Available since 2.0
Return to top
Show: