
| Visual Basic (Declaration) | |
|---|---|
Public Class MessagePartStream Inherits CodingStream | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessagePartStream | |
| C# | |
|---|---|
public class MessagePartStream : CodingStream | |
| Managed Extensions for C++ | |
|---|---|
public __gc class MessagePartStream : public CodingStream | |
| C++/CLI | |
|---|---|
public ref class MessagePartStream : public CodingStream | |
The MessagePartStream object encapsulates a simple inline MIME part. Most commonly, this part will be MIME text. Common usage will probably be similar to the following.
Creating a MessagePartStream will most commonly be performed by creating a new instance of a MessagePartStream object, passing the text for the part. This object can then be added to a MessageStream object by using MessageStream.Parts.Simple.Add.
Accessing a MessagePartStream will most commonly involve iterating through the MessageStream.Parts.Simple collection and accessing the MessageStream.Parts.Simple[n].Text property (for the un-encoded text) or the MessageStream.Parts.Simple[n].Content property (for a MemoryStream ' containing the part content).
To use MIME attachments use the MimeAttachmentStream object. 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.MessagePartStream
Target Platforms: Microsoft .NET Framework 2.0