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 Basic | Managed 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

Exception | Condition
--- | ---
ArgumentNullException | Raised when stream is null.
ArgumentException | Raised when argument count is less than 1.
InvalidOperationException | Raised when there already is pending write operation.
IncompleteDataException | Raised 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)