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




Returns all of the elements in the MailHeaders collection as a string. No "word encoding" is performed.

Syntax

Visual Basic (Declaration) 
Public Overrides Function ToString() As String
Visual Basic (Usage)Copy Code
Dim instance As MailHeader
Dim value As String
 
value = instance.ToString()
C# 
public override string ToString()
Managed Extensions for C++ 
public: string* ToString(); override 
C++/CLI 
public:
String^ ToString(); override 

Return Value

A string containing the values of all header lines in the collection.

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

Use this method to return all of the header lines in the MailHeaders collection as a string. Header lines will be delimited by CRLF. If a header line exceeds MailHeader.MaxLineLength a CRLF + Space will be inserted into the byte array. The byte array will be terminated with CRLFCRLF.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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