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

    Show / Hide Table of Contents

    Header Class

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

    Represents MIME entity header.

    • C#
    • VB.NET
    public sealed class Header
    Public NotInheritable Class Header
    Inheritance:
    System.Object
    Header

    Constructors

    Header(HeaderId, String)

    Initializes a new instance of the Header class with specified identifier and body.

    • C#
    • VB.NET
    public Header(HeaderId id, string body)
    Public Sub New(id As HeaderId, body As String)
    Parameters
    id
    HeaderId

    The identifier.

    body
    System.String

    The body.

    Header(String, String)

    Initializes a new instance of the Header class with specified name and body.

    • C#
    • VB.NET
    public Header(string name, string body)
    Public Sub New(name As String, body As String)
    Parameters
    name
    System.String

    The name.

    body
    System.String

    The body.

    Properties

    Body

    Gets or sets the body.

    • C#
    • VB.NET
    public string Body { get; set; }
    Public Property Body As String
    Property Value
    System.String

    The body.

    BodyCharset

    Gets or sets the body charset.

    • C#
    • VB.NET
    public Encoding BodyCharset { get; set; }
    Public Property BodyCharset As Encoding
    Property Value
    System.Text.Encoding

    The body charset.

    Id

    Gets the identifier.

    • C#
    • VB.NET
    public HeaderId Id { get; }
    Public ReadOnly Property Id As HeaderId
    Property Value
    HeaderId

    The identifier.

    Name

    Gets the name.

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

    The name.

    Methods

    ToString()

    Returns a System.String that represents this instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this instance.

    Overrides
    System.Object.ToString()
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.