LumiSoft Mail Server User API
Write Method (stream, count)
Namespaces > LumiSoft.Net.IO > StreamHelper > Write(Stream, Int32)
Reads specified amount of data for the specified stream and writes it to source stream.
Syntax
C#Visual BasicManaged C++
public void Write (
	Stream stream,
	int count
)
Public Sub Write ( _
	stream As Stream, _
	count As Integer _
)
public:
void Write (
	Stream^ stream, 
	int count
)
Parameters
stream (Stream)
Stream from where to read data.
count (Int32)
Number of bytes to read and write.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when stream is null.
ArgumentExceptionRaised when argument count is less than 1.
InvalidOperationExceptionRaised when there already is pending write operation.
IncompleteDataExceptionRaised stream has reached end of stream and doesn't have so much data as specified by count argument.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)