Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

LinkedResource.SetContentFromFile Method

Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9147)

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.

In This Article
  • SetContentFromFile(String, String)
  • SetContentFromFile(String, String, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies