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

LinkedResource Constructor

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

LinkedResource()

Initializes a new empty instance of a LinkedResource.

Declaration
public LinkedResource()

LinkedResource(String, String)

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

Declaration
public LinkedResource(string fileName, string mediaType)
Parameters
Type Name Description
String fileName

Path to the file to provide data for the resource.

String mediaType

A MIME media type of the file.

LinkedResource(String, String, String)

Initializes a new instance of a LinkedResource with the content of the specified file and with a media type and suggested name.

Declaration
public LinkedResource(string fileName, string name, string mediaType)
Parameters
Type Name Description
String fileName

Path to the file to provide data for the resource.

String name

A suggested name of the attachment.

String mediaType

A MIME media type of the file.

LinkedResource(Stream, String)

Initializes a new instance of a LinkedResource with the content of the supplied stream and with a media type.

Declaration
public LinkedResource(Stream contentStream, string mediaType)
Parameters
Type Name Description
Stream contentStream

Stream from which the data will be read.

String mediaType

A MIME media type of the file.

LinkedResource(Stream, String, String)

Initializes a new instance of a LinkedResource with the content of the supplied stream and with a media type and suggested name.

Declaration
public LinkedResource(Stream contentStream, string name, string mediaType)
Parameters
Type Name Description
Stream contentStream

Stream from which the data will be read.

String name

A suggested name of the resource.

String mediaType

A MIME media type of the file.

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