PowerTCP Mail for .NET
MailHeader Constructor(String)
See Also  Example Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MailHeader Class > MailHeader Constructor : MailHeader Constructor(String)




header
A String containing CRLF delimited header fields and labels, ASCII encoded, terminated with CRLFCRLF.
Initializes a new instance of the MailHeader class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal header As String _
)
Visual Basic (Usage)Copy Code
Dim header As String
 
Dim instance As New MailHeader(header)
C# 
public MailHeader( 
   string header
)
Managed Extensions for C++ 
public: MailHeader( 
   string* header
)
C++/CLI 
public:
MailHeader( 
   String^ header
)

Parameters

header
A String containing CRLF delimited header fields and labels, ASCII encoded, terminated with CRLFCRLF.

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

This constructor creates a new instance of the MailHeader class, filling the object with the data contained within header. header should contain header fields and labels in the format "label: field" and should be delimited with CRLFs. If a header field is added that is also encapsulated by a high-level property (for example, the "Subject:" header line is also encapsulated by MessageStream.Subject) the data will be propagated to this property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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