menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MIMEHeaderAttribute - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MIMEHeaderAttribute

    base MIME header attribute class.

    Inheritance
    System.Object
    MIMEHeaderAttribute
    MIMEHeaderSubTypesAttribute
    Implements
    IMIMEHeaderAttribute
    IMIMESerialization
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.MIME.Base.Implementation.Attributes
    Assembly: Syncfusion.MIME.Base.dll
    Syntax
    public class MIMEHeaderAttribute : IMIMEHeaderAttribute, IMIMESerialization

    Constructors

    MIMEHeaderAttribute(IMIMEHeader)

    Constructor.

    Declaration
    public MIMEHeaderAttribute(IMIMEHeader header)
    Parameters
    Type Name Description
    IMIMEHeader header

    parental header.

    MIMEHeaderAttribute(IMIMEHeader, String)

    Constructor specify parent header and attrbiute name

    Declaration
    public MIMEHeaderAttribute(IMIMEHeader header, string name)
    Parameters
    Type Name Description
    IMIMEHeader header

    parent reference

    System.String name

    attribute name

    Properties

    Charset

    gets/sets charset of attribute.

    Declaration
    public Encoding Charset { get; set; }
    Property Value
    Type
    System.Text.Encoding

    Encoding

    get/set value encoding.

    Declaration
    public MIMEParser.MIMEEncoding Encoding { get; set; }
    Property Value
    Type
    MIMEParser.MIMEEncoding

    Header

    property to get header.

    Declaration
    public IMIMEHeader Header { get; }
    Property Value
    Type
    IMIMEHeader

    Name

    Name of attribute.

    Declaration
    public virtual string Name { get; set; }
    Property Value
    Type
    System.String

    Value

    Get or Set value of header attribute.

    Declaration
    public string Value { get; set; }
    Property Value
    Type
    System.String

    Methods

    CheckCorrect(StringBuilder)

    Check if there is separator between name of attribute and its value.

    Declaration
    protected virtual void CheckCorrect(StringBuilder builder)
    Parameters
    Type Name Description
    System.Text.StringBuilder builder

    EncodeValue()

    method to encode value.

    Declaration
    protected virtual string EncodeValue()
    Returns
    Type
    System.String

    IsASCII(String)

    method to check if current character is ascii character.

    Declaration
    protected virtual bool IsASCII(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    System.Boolean

    if is...

    ReformatValue(StringBuilder, String)

    method to split value if needed.

    Declaration
    protected virtual string ReformatValue(StringBuilder builder, string sValue)
    Parameters
    Type Name Description
    System.Text.StringBuilder builder

    builder to write to.

    System.String sValue

    value to write.

    Returns
    Type
    System.String

    Save(Stream)

    Save MIME attribute to stream.

    Declaration
    public virtual void Save(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream to write to

    WriteValue()

    method to write attribute value

    Declaration
    protected virtual string WriteValue()
    Returns
    Type
    System.String

    Implements

    IMIMEHeaderAttribute
    IMIMESerialization
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved