Tnef Reader Constructor
Initialize a new instance of the TnefReader class.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public TnefReader(
Stream stream,
TnefOptions? options = null,
bool leaveOpen = false
)Parameters
- stream Stream
- The TNEF stream.
- options TnefOptions (Optional)
- The options to use, or to use Default.
- leaveOpen Boolean (Optional)
- to leave stream open when the reader is disposed; otherwise, .
Remarks
Creates a new TnefReader for the specified stream.
The constructor does not read anything from the stream. The TNEF stream header is read by the first call to Read(CancellationToken) or ReadAsync(CancellationToken).
Exceptions
| ArgumentNullException | stream is . |