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




useMemoryStream
true if MimeAttachmentStream.Content should be a MemoryStream, false if MimeAttachmentStream.Content should be a FileStream.
Initializes a new MimeAttachmentStream object.

Syntax

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

Parameters

useMemoryStream
true if MimeAttachmentStream.Content should be a MemoryStream, false if MimeAttachmentStream.Content should be a FileStream.

Remarks

Use this constructor to create an empty MimeAttachmentStream object. If useMemoryStream is true, the MimeAttachmentStream.Content property will be a MemoryStream. If useMemoryStream is false, the MimeAttachmentStream.Content property will be a FileStream. Create the part by using the MimeAttachmentStream.Content.Write method. Normally MimeAttachmentStreams can be created by passing a Stream or file name into the constructor. This constructor is reserved for advanced users.

When creating a MessagePartStream using this constructor, MessagePartStream.MimeEncoding will default to ContentEncoding.Base64.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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