PowerTCP Mail for .NET
MessageStream Constructor(Stream,Boolean)
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessageStream Class > MessageStream Constructor : MessageStream Constructor(Stream,Boolean)




message
A Stream object containing encoded message data.
useMemoryStreams
Determines if attachments are decoded as and stored as FileStreams or MemoryStreams.
Initializes a new instance of the MessageStream object with an encoded message.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal message As Stream, _
   ByVal useMemoryStreams As Boolean _
)
Visual Basic (Usage)Copy Code
Dim message As Stream
Dim useMemoryStreams As Boolean
 
Dim instance As New MessageStream(message, useMemoryStreams)
C# 
public MessageStream( 
   Stream message,
   bool useMemoryStreams
)
Managed Extensions for C++ 
public: MessageStream( 
   Stream* message,
   bool useMemoryStreams
)
C++/CLI 
public:
MessageStream( 
   Stream^ message,
   bool useMemoryStreams
)

Parameters

message
A Stream object containing encoded message data.
useMemoryStreams
Determines if attachments are decoded as and stored as FileStreams or MemoryStreams.

Remarks

message should be a Stream containing encoded message data. This constructor fills the MessageStream object with the input message, breaking it up into its component parts, and decoding it where necessary. This method stops when it hits the end of Stream. This constructor is intended to be used when loading an encoded message from a stream, such as a Stream filled by the Store method.

If useMemoryStreams is true, attachments will be decoded as MemoryStreams, enabling ease-of-use and increased performance in your application without having to write any data to a temp file. If useMemoryStreams is false, attachments will be decoded as FileStreams.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.