ChainedStreamAdd Method

Add a stream to the chained stream.

Definition

Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Add(
	Stream stream,
	bool leaveOpen = false
)

Parameters

stream  Stream
The stream.
leaveOpen  Boolean  (Optional)
if the stream should remain open after the ChainedStream is disposed; otherwise, .

Remarks

Adds the stream to the end of the chain.

Exceptions

ArgumentNullException stream is .

See Also