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