SqlFileStream.Write(Byte[], Int32, Int32) Method

Definition

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

C#
public override void Write(byte[] buffer, int offset, int count);

Parameters

buffer
Byte[]

An array of bytes. This method copies count bytes from buffer to the current stream.

offset
Int32

The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

count
Int32

The number of bytes to be written to the current stream.

Exceptions

The object does not support writing of data.

Remarks

Use the CanWrite property to determine whether the current instance supports writing.

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also