
| 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 | |
The following example demonstrates
| Visual Basic | Copy 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. | |
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.
System.Object
System.Collections.ArrayList
Dart.PowerTCP.Mail.MailHeader
Target Platforms: Microsoft .NET Framework 2.0