PowerTCP Mail for .NET
MessagePartStream Class
Members  See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace : MessagePartStream Class




Represents a simple inline MIME part.

Object Model

MessagePartStream Class

Syntax

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 

Remarks

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.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.IO.Stream
         Dart.PowerTCP.Mail.CodingStream
            Dart.PowerTCP.Mail.MessagePartStream

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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