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




Returns all of the elements in the MailHeaders collection as an array of bytes

Syntax

Visual Basic (Declaration) 
Public Function GetBytes() As Byte()
Visual Basic (Usage)Copy Code
Dim instance As MailHeader
Dim value() As Byte
 
value = instance.GetBytes()
C# 
public byte[] GetBytes()
Managed Extensions for C++ 
public: byte[]* GetBytes(); 
C++/CLI 
public:
array<byte>^ GetBytes(); 

Return Value

A byte array 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 an array of bytes. 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.