mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
93 lines
2.0 KiB
C#
93 lines
2.0 KiB
C#
//
|
|
// System.Web.Mail.MailHeader.cs
|
|
//
|
|
// Author(s):
|
|
// Per Arneng <[email protected]>
|
|
//
|
|
//
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
|
|
namespace System.Web.Mail {
|
|
|
|
// This class represents the header of a mail with
|
|
// all the header fields.
|
|
internal class MailHeader {
|
|
|
|
protected NameValueCollection data = new NameValueCollection();
|
|
|
|
public string To {
|
|
get { return data[ "To" ]; }
|
|
set { data[ "To" ] = value; }
|
|
}
|
|
|
|
public string From {
|
|
get { return data[ "From" ]; }
|
|
set { data[ "From" ] = value; }
|
|
}
|
|
|
|
public string Cc {
|
|
get { return data[ "Cc" ]; }
|
|
set { data[ "Cc" ] = value; }
|
|
}
|
|
|
|
public string Bcc {
|
|
get { return data[ "Bcc" ]; }
|
|
set { data[ "Bcc" ] = value; }
|
|
}
|
|
|
|
public string Subject {
|
|
get { return data[ "Subject" ]; }
|
|
set { data[ "Subject" ] = value; }
|
|
}
|
|
|
|
public string Importance {
|
|
get { return data[ "Importance" ]; }
|
|
set { data[ "Importance" ] = value; }
|
|
}
|
|
|
|
public string Priority {
|
|
get { return data[ "Priority" ]; }
|
|
set { data[ "Priority" ] = value; }
|
|
}
|
|
|
|
public string MimeVersion {
|
|
get { return data[ "Mime-Version" ]; }
|
|
set { data[ "Mime-Version" ] = value; }
|
|
}
|
|
|
|
public string ContentType {
|
|
get { return data[ "Content-Type" ]; }
|
|
set { data[ "Content-Type" ] = value; }
|
|
}
|
|
|
|
public string ContentTransferEncoding{
|
|
get { return data[ "Content-Transfer-Encoding" ]; }
|
|
set { data[ "Content-Transfer-Encoding" ] = value; }
|
|
}
|
|
|
|
public string ContentDisposition {
|
|
get { return data[ "Content-Disposition" ]; }
|
|
set { data[ "Content-Disposition" ] = value; }
|
|
}
|
|
|
|
public string ContentBase {
|
|
get { return data[ "Content-Base" ]; }
|
|
set { data[ "Content-Base" ] = value; }
|
|
}
|
|
|
|
public string ContentLocation {
|
|
get { return data[ "Content-Location" ]; }
|
|
set { data[ "Content-Location" ] = value; }
|
|
}
|
|
|
|
|
|
public NameValueCollection Data {
|
|
get { return data; }
|
|
}
|
|
|
|
}
|
|
|
|
}
|