LinkedResource.SetContentFromFile Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9448)
SetContentFromFile(String, String)
Sets the content of this resource to data read from the specified file and sets media type.
Declaration
public void SetContentFromFile(string fileName, string mediaType)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to read data from. |
| String | mediaType | Media type. |
SetContentFromFile(String, String, String)
Sets the content of this resource to data read from the specified file and sets media type and file name.
Declaration
public void SetContentFromFile(string fileName, string name, string mediaType)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to read data from. |
| String | name | File name to assign to the content. |
| String | mediaType | Media type. |