• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MimePart

A binary attachment MIME entity (e.g. image/png, application/pdf). The content is stored as decoded bytes.

Inheritance
object
MimeEntity
MimePart
Inherited Members
MimeEntity.Headers
MimeEntity.ContentType
MimeEntity.ContentDisposition
MimeEntity.ContentId
MimeEntity.TransferEncoding
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class MimePart : MimeEntity

Constructors

View Source

MimePart(MimeHeaderCollection, ContentType, ContentDisposition?, string?, ContentTransferEncoding, byte[])

Initializes a new instance of the MimePart class.

Declaration
public MimePart(MimeHeaderCollection headers, ContentType contentType, ContentDisposition? contentDisposition, string? contentId, ContentTransferEncoding transferEncoding, byte[] content)
Parameters
Type Name Description
MimeHeaderCollection headers
ContentType contentType
ContentDisposition contentDisposition
string contentId
ContentTransferEncoding transferEncoding
byte[] content

Properties

View Source

FileName

Gets the filename from Content-Disposition (or Content-Type name parameter), or null if not specified.

Declaration
public string? FileName { get; }
Property Value
Type Description
string
View Source

IsAttachment

Gets a value indicating whether this part is an attachment.

Declaration
public bool IsAttachment { get; }
Property Value
Type Description
bool
View Source

IsInline

Gets a value indicating whether this part is inline.

Declaration
public bool IsInline { get; }
Property Value
Type Description
bool

Methods

View Source

GetContent()

Gets the decoded content bytes.

Declaration
public byte[] GetContent()
Returns
Type Description
byte[]
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX