DecodeFromStream Method
Decodes from stream.
Syntax
[VB.NET] Public Sub DecodeFromStream(ByVal InputStream As System.IO.Stream)
[C#] public void DecodeFromStream(System.IO.Stream inputStream);
Remarks
This method decodes from stream. Same as DecodeFromString, but now the MIME message is passed to this method as a stream.
This method decodes the data given by the InputStream and optionally MessageHeaders and fills out the Parts collection .
Example (Decoding Mail Message)
MIMEControl.MessageHeaders.AddRange(MailControl.MessageHeaders) MIMEControl.DecodeFromStream(InputStream)NOTE: This method has a corresponding asynchronous version (DecodeFromStreamAsync) for use in the Xamarin environment.