Headers Class
Contains common header names and methods for extracting header name from HeaderId and vice versa.
- Inheritance:
- Headers
Properties
Bcc
Gets the 'bcc' header name.
Property Value
Bcc
.
Cc
Gets the 'cc' header name.
Property Value
Cc
.
Comments
Gets the 'comments' header name.
Property Value
Comments
.
ContentDescription
Gets the 'content description' header name.
public static string ContentDescription { get; }
Public Shared ReadOnly Property ContentDescription As String
Property Value
Content-Description
.
ContentDisposition
Gets the 'content disposition' header name.
public static string ContentDisposition { get; }
Public Shared ReadOnly Property ContentDisposition As String
Property Value
Content-Disposition
.
ContentId
Gets the 'content id' header name.
Property Value
Content-ID
.
ContentTransferEncoding
Gets the 'content transfer encoding' header name.
public static string ContentTransferEncoding { get; }
Public Shared ReadOnly Property ContentTransferEncoding As String
Property Value
Content-Transfer-Encoding
.
ContentType
Gets the 'content type' header name.
public static string ContentType { get; }
Public Shared ReadOnly Property ContentType As String
Property Value
Content-Type
.
Date
Gets the 'date' header name.
Property Value
Date
.
From
Gets the 'from' header name.
Property Value
From
.
InReplyTo
Gets the 'in reply to' header name.
Property Value
In-Reply-To
.
Keywords
Gets the 'keywords' header name.
Property Value
Keywords
.
MessageId
Gets the 'message id' header name.
Property Value
Message-ID
.
Received
Gets the 'received' header name.
Property Value
Received
.
References
Gets the 'references' header name.
public static string References { get; }
Public Shared ReadOnly Property References As String
Property Value
References
.
ReplyTo
Gets the 'reply to' header name.
Property Value
Reply-To
.
ResentBcc
Gets the 'resent bcc' header name.
Property Value
Resent-Bcc
.
ResentCc
Gets the 'resent cc' header name.
Property Value
Resent-Cc
.
ResentDate
Gets the 'resent date' header name.
public static string ResentDate { get; }
Public Shared ReadOnly Property ResentDate As String
Property Value
Resent-Date
.
ResentFrom
Gets the 'resent from' header name.
public static string ResentFrom { get; }
Public Shared ReadOnly Property ResentFrom As String
Property Value
Resent-From
.
ResentMessageId
Gets the 'resent message id' header name.
public static string ResentMessageId { get; }
Public Shared ReadOnly Property ResentMessageId As String
Property Value
Resent-Message-ID
.
ResentSender
Gets the 'resent sender' header name.
public static string ResentSender { get; }
Public Shared ReadOnly Property ResentSender As String
Property Value
Resent-Sender
.
ResentTo
Gets the 'resent to' header name.
Property Value
Resent-To
.
ReturnPath
Gets the 'return path' header name.
public static string ReturnPath { get; }
Public Shared ReadOnly Property ReturnPath As String
Property Value
Return-Path
.
Sender
Gets the 'sender' header name.
Property Value
Sender
.
Subject
Gets the 'subject' header name.
Property Value
Subject
.
To
Gets the 'to' header name.
Property Value
To
.
Version
Gets the 'version' header name.
Property Value
MIME-Version
.
Methods
GetId(String)
Gets the identifier for the specified name.
public static HeaderId GetId(string name)
Public Shared Function GetId(name As String) As HeaderId
Parameters
name
- String
The name.
Returns
The identifier for the specified name.
Exceptions
Name is null or empty.
GetName(HeaderId)
Gets the name for the specified identifier.
public static string GetName(HeaderId id)
Public Shared Function GetName(id As HeaderId) As String
Parameters
id
- HeaderId
The identifier.
Returns
The name for the specified identifier
Exceptions
Unable to get the name for custom or extension Header.
Unknown header identifier.