Encode the raw bytes as a string according to the Content-Transfer-Encoding.

Namespace:  Sasa.Net.Mail
Assembly:  Sasa.Net (in Sasa.Net.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Encode ( _
	data As Byte(), _
	contentTransferEncoding As TransferEncoding _
) As String
C#
public static string Encode(
	byte[] data,
	TransferEncoding contentTransferEncoding
)
Visual C++
public:
static String^ Encode(
	array<unsigned char>^ data, 
	TransferEncoding contentTransferEncoding
)
JavaScript
Sasa.Net.Mail.Mime.encode = function(data, contentTransferEncoding);

Parameters

data
Type: array< System..::.Byte >[]()[]
The raw data bytes.
contentTransferEncoding
Type: System.Net.Mime..::.TransferEncoding
The Content-Transfer-Encoding of the body.

Return Value

The decoded body of the e-mail.

See Also