C# Класс sidepop.Mime.MimeEntity

This class represents a Mime entity.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildMultiPartMessage void
BuildSinglePartMessage void
CreateAlternateView System.Net.Mail.AlternateView
CreateAttachment System.Net.Mail.Attachment
DecodeBytes string
IsAttachment bool
SetContentType void
SetMessageBody void
ToMailMessageEx sidepop.Mail.SidePOPMailMessage

Открытые методы

Метод Описание
AppendLineContent ( byte lineBytes ) : void

Append content to current content bytes and decoded message

CreateFrom ( byte bytes, bool throwOnInvalidContentType ) : MimeEntity

Create MimeEntity from the given bytes

GetEncoding ( ) : Encoding

Gets the body encoding.

GetEncoding ( string charset ) : Encoding

Returns the encoding to use for the specified charset

MimeEntity ( ) : System

Initializes a new instance of the MimeEntity class.

MimeEntity ( MimeEntity parent ) : System

Initializes a new instance of the MimeEntity class.

ToMailMessageEx ( ) : SidePOPMailMessage

Toes the mail message ex.

TrimBrackets ( string value ) : string

Trims the brackets.

Приватные методы

Метод Описание
BuildMultiPartMessage ( MimeEntity entity, SidePOPMailMessage message ) : void

Builds the multi part message.

BuildSinglePartMessage ( MimeEntity entity, SidePOPMailMessage message ) : void

Builds the single part message.

CreateAlternateView ( MimeEntity view ) : System.Net.Mail.AlternateView

Creates the alternate view.

CreateAttachment ( MimeEntity entity ) : System.Net.Mail.Attachment

Creates the attachment.

DecodeBytes ( byte buffer, Encoding encoding ) : string

Decodes the bytes.

IsAttachment ( MimeEntity child ) : bool
SetContentType ( ContentType contentType ) : void

Sets the type of the content.

SetMessageBody ( SidePOPMailMessage message, MimeEntity child ) : void

Sets the message body.

ToMailMessageEx ( MimeEntity entity ) : SidePOPMailMessage

Toes the mail message ex.

Описание методов

AppendLineContent() публичный Метод

Append content to current content bytes and decoded message
public AppendLineContent ( byte lineBytes ) : void
lineBytes byte
Результат void

CreateFrom() публичный статический Метод

Create MimeEntity from the given bytes
public static CreateFrom ( byte bytes, bool throwOnInvalidContentType ) : MimeEntity
bytes byte The bytes to read
throwOnInvalidContentType bool
Результат MimeEntity

GetEncoding() публичный Метод

Gets the body encoding.
public GetEncoding ( ) : Encoding
Результат System.Text.Encoding

GetEncoding() публичный статический Метод

Returns the encoding to use for the specified charset
public static GetEncoding ( string charset ) : Encoding
charset string
Результат System.Text.Encoding

MimeEntity() публичный Метод

Initializes a new instance of the MimeEntity class.
public MimeEntity ( ) : System
Результат System

MimeEntity() публичный Метод

Initializes a new instance of the MimeEntity class.
public MimeEntity ( MimeEntity parent ) : System
parent MimeEntity The parent.
Результат System

ToMailMessageEx() публичный Метод

Toes the mail message ex.
public ToMailMessageEx ( ) : SidePOPMailMessage
Результат sidepop.Mail.SidePOPMailMessage

TrimBrackets() публичный статический Метод

Trims the brackets.
public static TrimBrackets ( string value ) : string
value string The value.
Результат string