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

Namespace:  Rebex.Security
Assembly:  Rebex.Security (in Rebex.Security.dll)

Syntax

Visual Basic
Public Overrides Sub Write ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
)
C#
public override void Write(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
An array of bytes. This method copies count bytes from buffer to the current stream.
offset
Type: System..::..Int32
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
count
Type: System..::..Int32
The number of bytes to be written to the current stream.

Exceptions

ExceptionCondition
System..::..ArgumentException The sum of offset and count is greater than the buffer length.
System..::..ArgumentNullExceptionbuffer is null.
System..::..ArgumentOutOfRangeExceptionoffset or count is negative.
System.IO..::..IOException An I/O error occurs.
System..::..NotSupportedException The stream does not support writing.
System..::..ObjectDisposedException Methods were called after the stream was closed.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also