GemBox.Email
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    Headers Class

    Namespace:
    GemBox.Email.Mime
    Assembly:
    GemBox.Email.dll

    Contains common header names and methods for extracting header name from HeaderId and vice versa.

    • C#
    • VB.NET
    public static class Headers
    Public Module Headers
    Inheritance:
    System.Object
    Headers

    Properties

    Bcc

    Gets the 'bcc' header name.

    • C#
    • VB.NET
    public static string Bcc { get; }
    Public Shared ReadOnly Property Bcc As String
    Property Value
    System.String

    Bcc.

    Cc

    Gets the 'cc' header name.

    • C#
    • VB.NET
    public static string Cc { get; }
    Public Shared ReadOnly Property Cc As String
    Property Value
    System.String

    Cc.

    Comments

    Gets the 'comments' header name.

    • C#
    • VB.NET
    public static string Comments { get; }
    Public Shared ReadOnly Property Comments As String
    Property Value
    System.String

    Comments.

    ContentDescription

    Gets the 'content description' header name.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public static string ContentId { get; }
    Public Shared ReadOnly Property ContentId As String
    Property Value
    System.String

    Content-ID.

    ContentTransferEncoding

    Gets the 'content transfer encoding' header name.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public static string ContentType { get; }
    Public Shared ReadOnly Property ContentType As String
    Property Value
    System.String

    Content-Type.

    Date

    Gets the 'date' header name.

    • C#
    • VB.NET
    public static string Date { get; }
    Public Shared ReadOnly Property Date As String
    Property Value
    System.String

    Date.

    From

    Gets the 'from' header name.

    • C#
    • VB.NET
    public static string From { get; }
    Public Shared ReadOnly Property From As String
    Property Value
    System.String

    From.

    InReplyTo

    Gets the 'in reply to' header name.

    • C#
    • VB.NET
    public static string InReplyTo { get; }
    Public Shared ReadOnly Property InReplyTo As String
    Property Value
    System.String

    In-Reply-To.

    Keywords

    Gets the 'keywords' header name.

    • C#
    • VB.NET
    public static string Keywords { get; }
    Public Shared ReadOnly Property Keywords As String
    Property Value
    System.String

    Keywords.

    MessageId

    Gets the 'message id' header name.

    • C#
    • VB.NET
    public static string MessageId { get; }
    Public Shared ReadOnly Property MessageId As String
    Property Value
    System.String

    Message-ID.

    Received

    Gets the 'received' header name.

    • C#
    • VB.NET
    public static string Received { get; }
    Public Shared ReadOnly Property Received As String
    Property Value
    System.String

    Received.

    References

    Gets the 'references' header name.

    • C#
    • VB.NET
    public static string References { get; }
    Public Shared ReadOnly Property References As String
    Property Value
    System.String

    References.

    ReplyTo

    Gets the 'reply to' header name.

    • C#
    • VB.NET
    public static string ReplyTo { get; }
    Public Shared ReadOnly Property ReplyTo As String
    Property Value
    System.String

    Reply-To.

    ResentBcc

    Gets the 'resent bcc' header name.

    • C#
    • VB.NET
    public static string ResentBcc { get; }
    Public Shared ReadOnly Property ResentBcc As String
    Property Value
    System.String

    Resent-Bcc.

    ResentCc

    Gets the 'resent cc' header name.

    • C#
    • VB.NET
    public static string ResentCc { get; }
    Public Shared ReadOnly Property ResentCc As String
    Property Value
    System.String

    Resent-Cc.

    ResentDate

    Gets the 'resent date' header name.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public static string ResentTo { get; }
    Public Shared ReadOnly Property ResentTo As String
    Property Value
    System.String

    Resent-To.

    ReturnPath

    Gets the 'return path' header name.

    • C#
    • VB.NET
    public static string ReturnPath { get; }
    Public Shared ReadOnly Property ReturnPath As String
    Property Value
    System.String

    Return-Path.

    Sender

    Gets the 'sender' header name.

    • C#
    • VB.NET
    public static string Sender { get; }
    Public Shared ReadOnly Property Sender As String
    Property Value
    System.String

    Sender.

    Subject

    Gets the 'subject' header name.

    • C#
    • VB.NET
    public static string Subject { get; }
    Public Shared ReadOnly Property Subject As String
    Property Value
    System.String

    Subject.

    To

    Gets the 'to' header name.

    • C#
    • VB.NET
    public static string To { get; }
    Public Shared ReadOnly Property To As String
    Property Value
    System.String

    To.

    Version

    Gets the 'version' header name.

    • C#
    • VB.NET
    public static string Version { get; }
    Public Shared ReadOnly Property Version As String
    Property Value
    System.String

    MIME-Version.

    Methods

    GetId(String)

    Gets the identifier for the specified name.

    • C#
    • VB.NET
    public static HeaderId GetId(string name)
    Public Shared Function GetId(name As String) As HeaderId
    Parameters
    name
    System.String

    The name.

    Returns
    HeaderId

    The identifier for the specified name.

    Exceptions
    System.ArgumentException

    Name is null or empty.

    GetName(HeaderId)

    Gets the name for the specified identifier.

    • C#
    • VB.NET
    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.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.