PowerTCP Mail for .NET
UseMemoryStreams Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Pop Class : UseMemoryStreams Property




Controls whether attachments are decoded and stored as FileStreams or as MemoryStreams when a message is retrieved.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("When true, attachment files will be decoded into MemoryStreams instead of FileStreams.")>
<CategoryAttribute("Behavior")>
<DefaultValueAttribute()>
Public Property UseMemoryStreams As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Pop
Dim value As Boolean
 
instance.UseMemoryStreams = value
 
value = instance.UseMemoryStreams
C# 
[DescriptionAttribute("When true, attachment files will be decoded into MemoryStreams instead of FileStreams.")]
[CategoryAttribute("Behavior")]
[DefaultValueAttribute()]
public bool UseMemoryStreams {get; set;}
Managed Extensions for C++ 
[DescriptionAttribute("When true, attachment files will be decoded into MemoryStreams instead of FileStreams.")]
[CategoryAttribute("Behavior")]
[DefaultValueAttribute()]
public: __property bool get_UseMemoryStreams();
public: __property void set_UseMemoryStreams( 
   bool value
);
C++/CLI 
[DescriptionAttribute("When true, attachment files will be decoded into MemoryStreams instead of FileStreams.")]
[CategoryAttribute("Behavior")]
[DefaultValueAttribute()]
public:
property bool UseMemoryStreams {
   bool get();
   void set (    bool value);
}

Property Value

true if attachments should be decoded and stored as MemoryStreams when a message is retrieved; false if they should be decoded and stored as files.

Remarks

When this property is true, all attachments of messages retrieved will automatically be decoded and saved as files in the system temp directory. This property is useful because it may be desirable to keep attachments in memory instead of writing them to the file system. A good example of this is in the case of web applications.

When this property is set to true, make sure that enough memory is available to hold all messages being downloaded.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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