PowerTCP Mail for .NET
ToString(Boolean,Boolean,MailMessage) Method




true if the ASCII-encoded representation should be returned. Otherwise a decoded UNICODE representation suitable for display is returned.
true if Headers should be included. Otherwise only the content body is returned.
The base MailMessage that is used to compute the part level for the returned String. Can be null.
Returns the MIME entity as a String.
Syntax
Public Overloads Function ToString( _
   ByVal encode As Boolean, _
   ByVal includeHeaders As Boolean, _
   ByVal baseMessage As MailMessage _
) As String
Dim instance As Part
Dim encode As Boolean
Dim includeHeaders As Boolean
Dim baseMessage As MailMessage
Dim value As String
 
value = instance.ToString(encode, includeHeaders, baseMessage)
public string ToString( 
   bool encode,
   bool includeHeaders,
   MailMessage baseMessage
)
public: string* ToString( 
   bool encode,
   bool includeHeaders,
   MailMessage* baseMessage
) 
public:
String^ ToString( 
   bool encode,
   bool includeHeaders,
   MailMessage^ baseMessage
) 

Parameters

encode
true if the ASCII-encoded representation should be returned. Otherwise a decoded UNICODE representation suitable for display is returned.
includeHeaders
true if Headers should be included. Otherwise only the content body is returned.
baseMessage
The base MailMessage that is used to compute the part level for the returned String. Can be null.

Return Value

String
See Also

Reference

Part Class
Part Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic