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