Click or drag to resize

XsFileStream.Write Method

X#
Writes a block of bytes to the file stream.

Namespace:  XSharp.IO
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Write(
	bytes AS BYTE[],
	offset AS LONG,
	count AS LONG
) AS VOID
Request Example View Source

Parameters

bytes
Type: Byte
offset
Type: Long
The zero-based byte offset in array from which to begin copying bytes to the stream.
count
Type: Long
The maximum number of bytes to write.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentExceptionoffset and count describe an invalid range in array.
ArgumentOutOfRangeExceptionoffset or count is negative.
IOExceptionAn I/O error occurred. -or- Another thread may have caused an unexpected change in the position of the operating system's file handle.
ObjectDisposedExceptionThe stream is closed.
NotSupportedExceptionThe current stream instance does not support writing.
See Also