Initializes a new instance of a AlternateView with the content of the specified file and with media type.

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

Syntax

Visual Basic
Public Sub New ( _
	fileName As String, _
	mediaType As String _
)
C#
public AlternateView(
	string fileName,
	string mediaType
)

Parameters

fileName
Type: System..::..String
Path to the file to provide data for the view.
mediaType
Type: System..::..String
A MIME media type of the file.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also