
| Visual Basic (Declaration) | |
|---|---|
Public Class MimeAttachmentStream Inherits AttachmentStream | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MimeAttachmentStream | |
| C# | |
|---|---|
public class MimeAttachmentStream : AttachmentStream | |
| Managed Extensions for C++ | |
|---|---|
public __gc class MimeAttachmentStream : public AttachmentStream | |
| C++/CLI | |
|---|---|
public ref class MimeAttachmentStream : public AttachmentStream | |
The MimeAttachmentStream object encapsulates a MIME attachment. Common usage will probably be similar to the following.
Creating a MimeAttachmentStream will begin by creating a new instance of a MimeAttachmentStream object, passing in a Stream containing the data to add as an attachment, or a filename of the attachment. This object can then be added to a MessageStream object by using MessageStream.Parts.Attachments.Add or MessageStreams.Attachments.Add.
Accessing a MessagePartStream will most commonly involve iterating through the MessageStream.Parts.Attachments collection and using the MessageStream.Parts.Attachments.Save method to save the attachment to a file or the MessageStream.Parts.Attachments.Content property to get the attachment data as a Stream.
To use simple inline MIME parts, use the MessagePartStream class.To use complex multi-part MIME parts, use the MessageStream object.
System.Object
System.MarshalByRefObject
System.IO.Stream
Dart.PowerTCP.Mail.CodingStream
Dart.PowerTCP.Mail.AttachmentStream
Dart.PowerTCP.Mail.MimeAttachmentStream
Target Platforms: Microsoft .NET Framework 2.0