C# Class sidepop.Mime.MimeEntity

This class represents a Mime entity.
ファイルを表示 Open project: Octopus-ITSM/sidepop Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

AppendLineContent() public method

Append content to current content bytes and decoded message
public AppendLineContent ( byte lineBytes ) : void
lineBytes byte
return void

CreateFrom() public static method

Create MimeEntity from the given bytes
public static CreateFrom ( byte bytes, bool throwOnInvalidContentType ) : MimeEntity
bytes byte The bytes to read
throwOnInvalidContentType bool
return MimeEntity

GetEncoding() public method

Gets the body encoding.
public GetEncoding ( ) : Encoding
return System.Text.Encoding

GetEncoding() public static method

Returns the encoding to use for the specified charset
public static GetEncoding ( string charset ) : Encoding
charset string
return System.Text.Encoding

MimeEntity() public method

Initializes a new instance of the MimeEntity class.
public MimeEntity ( ) : System
return System

MimeEntity() public method

Initializes a new instance of the MimeEntity class.
public MimeEntity ( MimeEntity parent ) : System
parent MimeEntity The parent.
return System

ToMailMessageEx() public method

Toes the mail message ex.
public ToMailMessageEx ( ) : SidePOPMailMessage
return sidepop.Mail.SidePOPMailMessage

TrimBrackets() public static method

Trims the brackets.
public static TrimBrackets ( string value ) : string
value string The value.
return string