Edit

Share via


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.

public:
 override void Write(cli::array <System::Byte> ^ buffer, int offset, int count);
public override void Write (byte[] buffer, int offset, int count);
override this.Write : byte[] * int * int -> unit
Public Overrides Sub Write (buffer As Byte(), offset As Integer, count As Integer)

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

See also