Sets the content of this view to data read from the specified file and sets media type.

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

Syntax

C#
public void SetContentFromFile(
	string fileName,
	string mediaType
)
Visual Basic (Declaration)
Public Sub SetContentFromFile ( _
	fileName As String, _
	mediaType As String _
)
Visual C++
public:
void SetContentFromFile(
	String^ fileName, 
	String^ mediaType
)

Parameters

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

See Also