Sets the content of this entity to data read from the specified file.
Namespace:
Rebex.Mime
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 not set automatically. Set it manually using Name if needed.
Media type is set to 'application/octet-stream'.