Sets the content of this entity to data read from the specified file and sets media type, file name and transfer encoding.

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

Syntax

Visual Basic
Public Sub SetContentFromFile ( _
	fileName As String, _
	name As String, _
	mediaType As String, _
	transferEncoding As TransferEncoding _
)
C#
public void SetContentFromFile(
	string fileName,
	string name,
	string mediaType,
	TransferEncoding transferEncoding
)

Parameters

fileName
Type: System..::..String
Path to the file to read data from.
name
Type: System..::..String
File name to assign to the content, or null if no file name is to be assigned.
mediaType
Type: System..::..String
Media type.
transferEncoding
Type: Rebex.Mime..::..TransferEncoding
Transfer encoding.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also