Initializes a new instance of a Attachment with the content of the supplied stream and with suggested name.

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

Syntax

C#
public Attachment(
	Stream contentStream,
	string name
)
Visual Basic (Declaration)
Public Sub New ( _
	contentStream As Stream, _
	name As String _
)
Visual C++
public:
Attachment(
	Stream^ contentStream, 
	String^ name
)

Parameters

contentStream
Type: System.IO..::.Stream
Stream from which the data will be read.
name
Type: System..::.String
A suggested name of the attachment.

See Also