PowerTCP Mail for .NET
GetEncodingStream() Method




Returns a Stream that encodes when System.IO.Stream.Read(System.Byte[],System.Int32,System.Int32) is used and decodes when System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) is used.
Syntax
Public Function GetEncodingStream() As Stream
Dim instance As Part
Dim value As Stream
 
value = instance.GetEncodingStream()
public Stream GetEncodingStream()
public: Stream* GetEncodingStream(); 
public:
Stream^ GetEncodingStream(); 

Return Value

A System.IO.Stream that encodes/decodes.
Remarks

Acts on the Headers and body/part content. The architecture used for all mail encoding/decoding is based on this technique where the returned Stream is simply read from or written to. All encoding and decoding happens "on-the-fly" with minimal buffering occurring in memory.

Any existing content is disposed of when a new message is decoded (when Stream.Write() is used).

See Also

Reference

Part Class
Part Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic