Initializes a new instance of a Attachment with the content of the specified file.

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

Syntax

Visual Basic
Public Sub New ( _
	fileName As String _
)
C#
public Attachment(
	string fileName
)

Parameters

fileName
Type: System..::..String
Path to the file to provide data for the attachment.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also