Sets the content of this attachment to data read from the specified file.

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

Syntax

Visual Basic
Public Sub SetContentFromFile ( _
	fileName As String _
)
C#
public void SetContentFromFile(
	string fileName
)

Parameters

fileName
Type: System..::..String
Path to the file to read data from.

Remarks

File name is determined from the path. Media type is set to 'application/octet-stream'.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also