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

Class MultipartParser

Scans a MIME multipart body for boundary delimiters and splits it into individual parts (RFC 2046 §5.1.1). Each part's raw bytes (headers + body) are returned for further parsing by MimeReader.

Inheritance
object
MultipartParser
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Mime.Parsing
Assembly: DRIT.Mail.dll
Syntax
public static class MultipartParser

Methods

View Source

Split(byte[], string)

Splits the specified body bytes into individual part byte arrays using the given boundary string. The preamble (before the first boundary) and epilogue (after the closing boundary) are discarded.

Declaration
public static IReadOnlyList<byte[]> Split(byte[] body, string boundary)
Parameters
Type Name Description
byte[] body

Specifies the body value.

string boundary

Specifies the boundary value.

Returns
Type Description
IReadOnlyList<byte[]>
  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX