| 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.
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.
Target Platforms: Microsoft .NET Framework 2.0