Class FileAttachment
Represents a file attachment.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Mail
Assembly: IRM.dll
Syntax
public class FileAttachment
Constructors
FileAttachment(String, ContentType, Stream)
Creates a new instance of FileAttachment.
Declaration
public FileAttachment(string fileName, ContentType contentType, Stream fileContent)
Parameters
String
fileName
The name of the file. |
System.Net.Mime.ContentType
contentType
The ContentType of the file. |
System.IO.Stream
fileContent
The content of the file. |
FileAttachment(String, String, Byte[])
Creates a new instance of FileAttachment.
Declaration
public FileAttachment(string fileName, string contentType, byte[] fileContent)
Parameters
String
fileName
The name of the file. |
String
contentType
The content type of the file. |
System.Byte[]
fileContent
The content of the file. |
Properties
ContentId
Gets or sets the content id of the attachment.
Declaration
public string ContentId { get; set; }
Property Value
String
|
ContentType
Gets the ContentType of the file.
Declaration
public ContentType ContentType { get; }
Property Value
System.Net.Mime.ContentType
|
FileContent
Gets the content of the file.
Declaration
public Stream FileContent { get; }
Property Value
System.IO.Stream
|
FileName
Operators
Implicit(FileAttachment to Attachment)
Converts an FileAttachment to a System.Net.Mail.Attachment.
Declaration
public static implicit operator Attachment(FileAttachment attachment)
Parameters
FileAttachment
attachment
The FileAttachment. |
Returns
System.Net.Mail.Attachment
|