Sets the content of this attachment to the specified text, media type and character set.

Namespace:  Rebex.Mail
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Sub SetContent ( _
	text As String, _
	mediaType As String, _
	charset As Encoding, _
	transferEncoding As TransferEncoding _
)
C#
public void SetContent(
	string text,
	string mediaType,
	Encoding charset,
	TransferEncoding transferEncoding
)

Parameters

text
Type: System..::..String
Content to set.
mediaType
Type: System..::..String
Media type.
charset
Type: System.Text..::..Encoding
Character set to use for encoding the text.
transferEncoding
Type: Rebex.Mime..::..TransferEncoding
Transfer encoding.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also