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




Collection representing the header of an Internet email message.

Object Model

MailHeader ClassString Class

Syntax

Visual Basic (Declaration) 
<DefaultMemberAttribute("Item")>
Public Class MailHeader 
   Inherits System.Collections.ArrayList
Visual Basic (Usage)Copy Code
Dim instance As MailHeader
C# 
[DefaultMemberAttribute("Item")]
public class MailHeader : System.Collections.ArrayList 
Managed Extensions for C++ 
[DefaultMemberAttribute("Item")]
public __gc class MailHeader : public System.Collections.ArrayList 
C++/CLI 
[DefaultMemberAttribute("Item")]
public ref class MailHeader : public System.Collections.ArrayList 

Example

The following example demonstrates
Visual BasicCopy Code
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Mail"
' at the top of your class.
C#Copy Code
// Be sure to import the namespace by putting "using Dart.PowerTCP.Mail;"
// at the top of your class.

Remarks

When using PowerTCP Secure Mail for .NET, mail header lines are managed by accessing the MessageStream.Header collection. Since this class inherits from ArrayList common ArrayList members can be used such as Count, Add, Remove, Sort, Clear, etc. In addition some members are available which are specific to a mail header. For example, MailHeader.MaxLineLength specifies the maximum size for a header line.

Some header lines are added by use of a high-level member. For example, setting MessageStream.Subject will add a "Subject:" header line to this collection.

Inheritance Hierarchy

System.Object
   System.Collections.ArrayList
      Dart.PowerTCP.Mail.MailHeader

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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