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




useMemoryStreams
Determines if attachments are decoded and stored as FileStreams or MemoryStreams.
Initializes a new instance of the MessageStream object.

Syntax

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

Parameters

useMemoryStreams
Determines if attachments are decoded and stored as FileStreams or MemoryStreams.

Remarks

This constructor initializes a new instance of the MessageStream object with default values. If useMemoryStreams is true, attachments will be decoded as MemoryStreams, enabling ease-of-use in your application without having to write any data to a temp file and increased performance. 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.