Convenience constructor for textual attachments. Also allows specifying Content-ID and Content-Location MIME headers.

Namespace: hr.tis.mgw.client.message
Assembly:   mgw2-client-1.0.6 (in mgw2-client-1.0.6)
Version: 2.1.0.6

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	text As String, _
	charset As String, _
	contentId As String, _
	contentLocation As String _
)
C#
public Attachment (
	string text,
	string charset,
	string contentId,
	string contentLocation
)
Visual C++
public:
Attachment (
	String^ text, 
	String^ charset, 
	String^ contentId, 
	String^ contentLocation
)

Parameters

text
System.String
textual content
charset
System.String
character set
contentId
System.String
Content-ID MIME header value
contentLocation
System.String
Content-Location MIME header value

Exceptions

ExceptionCondition
hr.tis.mgw.client.message.UnsupportedEncodingExceptionthrown if character set is invalid