C# Class nMail.Attachment

�Y�t�t�@�C���ۑ��N���X
Inheritance: IDisposable
Exibir arquivo Open project: hijirichan/AkaneMail Class Usage Examples

Protected Properties

Property Type Description
_attachment_flag bool
_body StringBuilder
_body_list System.Collections.ArrayList
_date StringBuilder
_err int
_field StringBuilder
_field_name string
_filename StringBuilder
_filename_list string[]
_from StringBuilder
_header StringBuilder
_header_list System.Collections.ArrayList
_header_size int
_html_file StringBuilder
_id StringBuilder
_path string
_rfc822_file StringBuilder
_subject StringBuilder
_temp byte[]

Public Methods

Method Description
Add ( string header_body ) : void

�W�J���ƂȂ镪���t�@�C���f�[�^�������X�g�ɒlj����܂��B

�w�b�_�Ɩ{���̊Ԃɂ͈�s�̋�s���K�v�ł��B

Add ( string header, string body ) : void

�W�J���ƂȂ镪���t�@�C���f�[�^�������X�g�ɒlj����܂��B

Attachment ( ) : System

Attachment�N���X�̐V�K�C���X�^���X����������܂��B

Close ( ) : void

�Y�t�t�@�C���W�J�Ŏg�p���Ă������\�[�X�������܂��B

DecodeHeaderField ( string field ) : string

MIME �w�b�_�t�B�[���h�̕������f�R�[�h���܂�

Dispose ( ) : void

Attachment�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B

GetDecodeHeaderField ( string field_name ) : string

���[���w�b�_����w��̃w�b�_�t�B�[���h�̓�e��擾���A MIME �w�b�_�t�B�[���h�̃f�R�[�h��s���ĕԂ��܂�

GetDecodeHeaderField ( string field_name, string header ) : string

���[���w�b�_����w��̃w�b�_�t�B�[���h�̓�e��擾���A MIME �w�b�_�t�B�[���h�̃f�R�[�h��s���ĕԂ��܂�

GetFileNameList ( ) : string[]

�Y�t�t�@�C�����̔z��ł��B

���̃v���p�e�B�͌݊����̂��߂Ɏc���Ă���܂��B GetFileNameList�Ŕz���擾���Ďg�p����悤�ɂ��Ă��������B

GetHeaderField ( string field_name ) : string

���[���w�b�_����w��̃t�B�[���h�̓�e��擾���܂��B

GetHeaderField ( string field_name, string header ) : string

���[���w�b�_����w��̃t�B�[���h�̓�e��擾���܂��B

GetId ( string header ) : int

�����t�@�C���� ID ��擾���܂��B

Save ( ) : void

�Y�t�t�@�C����W�J���ĕۑ����܂��B

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Attachment�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B

GetBodySize ( ) : int

���[���{���̍��v�T�C�Y��擾���܂��B

SetHeaderSize ( ) : void

�w�b�_�i�[�p�o�b�t�@�̃T�C�Y����肵�܂��B

Private Methods

Method Description
AttachmentFileClose ( byte Temp ) : bool
AttachmentFileFirst ( byte Temp, StringBuilder Subject, StringBuilder Date, StringBuilder From, StringBuilder Header, StringBuilder Body, string Path, StringBuilder FileName, string FirstHeader, string FirstBody ) : int
AttachmentFileNextVB ( byte Temp, StringBuilder Subject, StringBuilder Date, StringBuilder From, StringBuilder Header, StringBuilder Body, string Path, StringBuilder FileName, string NextHeader, string NextBody ) : int
AttachmentFileStatus ( string Header, StringBuilder Id, int Size ) : int
Pop3DecodeHeaderField ( StringBuilder Destination, string Source, int Size ) : int
Pop3GetHeaderField ( StringBuilder Field, string Header, string Name, int Size ) : int

Method Details

Add() public method

�W�J���ƂȂ镪���t�@�C���f�[�^�������X�g�ɒlj����܂��B
�w�b�_�Ɩ{���̊Ԃɂ͈�s�̋�s���K�v�ł��B
public Add ( string header_body ) : void
header_body string �w�b�_�[�{�{���̕�����
return void

Add() public method

�W�J���ƂȂ镪���t�@�C���f�[�^�������X�g�ɒlj����܂��B
public Add ( string header, string body ) : void
header string �w�b�_�[�̕�����
body string �{���̕�����
return void

Attachment() public method

Attachment�N���X�̐V�K�C���X�^���X����������܂��B
public Attachment ( ) : System
return System

Close() public method

�Y�t�t�@�C���W�J�Ŏg�p���Ă������\�[�X�������܂��B
public Close ( ) : void
return void

DecodeHeaderField() public method

MIME �w�b�_�t�B�[���h�̕������f�R�[�h���܂�
public DecodeHeaderField ( string field ) : string
field string �t�B�[���h�̕�����
return string

Dispose() public method

Attachment�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B
public Dispose ( ) : void
return void

Dispose() protected method

Attachment�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B
protected Dispose ( bool disposing ) : void
disposing bool /// �}�l�[�W���\�[�X�ƃA���}�l�[�W���\�[�X�̗�����������ꍇ��true�B /// �A���}�l�[�W���\�[�X������������ꍇ��false�B ///
return void

GetBodySize() protected method

���[���{���̍��v�T�C�Y��擾���܂��B
protected GetBodySize ( ) : int
return int

GetDecodeHeaderField() public method

���[���w�b�_����w��̃w�b�_�t�B�[���h�̓�e��擾���A MIME �w�b�_�t�B�[���h�̃f�R�[�h��s���ĕԂ��܂�
public GetDecodeHeaderField ( string field_name ) : string
field_name string �t�B�[���h��
return string

GetDecodeHeaderField() public method

���[���w�b�_����w��̃w�b�_�t�B�[���h�̓�e��擾���A MIME �w�b�_�t�B�[���h�̃f�R�[�h��s���ĕԂ��܂�
public GetDecodeHeaderField ( string field_name, string header ) : string
field_name string �t�B�[���h��
header string �w�b�_
return string

GetFileNameList() public method

�Y�t�t�@�C�����̔z��ł��B
���̃v���p�e�B�͌݊����̂��߂Ɏc���Ă���܂��B GetFileNameList�Ŕz���擾���Ďg�p����悤�ɂ��Ă��������B
public GetFileNameList ( ) : string[]
return string[]

GetHeaderField() public method

���[���w�b�_����w��̃t�B�[���h�̓�e��擾���܂��B
public GetHeaderField ( string field_name ) : string
field_name string �t�B�[���h��
return string

GetHeaderField() public method

���[���w�b�_����w��̃t�B�[���h�̓�e��擾���܂��B
public GetHeaderField ( string field_name, string header ) : string
field_name string �t�B�[���h��
header string �w�b�_
return string

GetId() public method

�����t�@�C���� ID ��擾���܂��B
public GetId ( string header ) : int
header string �w�b�_�[�̕�����
return int

Save() public method

�Y�t�t�@�C����W�J���ĕۑ����܂��B
/// �Ō��ƂȂ镶����i�w�b�_,�{��)���lj�����Ă��܂���B /// /// �Ŏw�肵���t�H���_�����݂��܂���B /// /// �W�J���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Save ( ) : void
return void

SetHeaderSize() protected method

�w�b�_�i�[�p�o�b�t�@�̃T�C�Y����肵�܂��B
protected SetHeaderSize ( ) : void
return void

Property Details

_attachment_flag protected_oe property

�W�J��J�n�������ǂ����̃t���O�ł��B
protected bool _attachment_flag
return bool

_body protected_oe property

���[���̖{���ł��B
protected StringBuilder _body
return StringBuilder

_body_list protected_oe property

�{���f�[�^�̃��X�g
protected ArrayList,System.Collections _body_list
return System.Collections.ArrayList

_date protected_oe property

���[���̑��M�����ł��B
protected StringBuilder _date
return StringBuilder

_err protected_oe property

�G���[�ԍ��ł��B
protected int _err
return int

_field protected_oe property

�w�b�_�t�B�[���h��e�i�[�o�b�t�@�ł��B
protected StringBuilder _field
return StringBuilder

_field_name protected_oe property

�w�b�_�t�B�[���h���ł��B
protected string _field_name
return string

_filename protected_oe property

�W�J�����Y�t�t�@�C�����ł��B
protected StringBuilder _filename
return StringBuilder

_filename_list protected_oe property

�Y�t�t�@�C�����̃��X�g�ł��B
protected string[] _filename_list
return string[]

_from protected_oe property

���[���̍��o�l�ł��B
protected StringBuilder _from
return StringBuilder

_header protected_oe property

���[���̃w�b�_�ł��B
protected StringBuilder _header
return StringBuilder

_header_list protected_oe property

�w�b�_�f�[�^�̃��X�g
protected ArrayList,System.Collections _header_list
return System.Collections.ArrayList

_header_size protected_oe property

�w�b�_�[�T�C�Y�ł��B
protected int _header_size
return int

_html_file protected_oe property

text/html �p�[�g��ۑ������t�@�C���̖��O�ł��B
protected StringBuilder _html_file
return StringBuilder

_id protected_oe property

�����t�@�C���� ID �ł��B
protected StringBuilder _id
return StringBuilder

_path protected_oe property

�Y�t�t�@�C����ۑ�����p�X�ł��B
protected string _path
return string

_rfc822_file protected_oe property

message/rfc822 �p�[�g��ۑ������t�@�C���̖��O�ł��B
protected StringBuilder _rfc822_file
return StringBuilder

_subject protected_oe property

���[���̌����ł��B
protected StringBuilder _subject
return StringBuilder

_temp protected_oe property

�Y�t�t�@�C���W�J�p�o�b�t�@�ł��B
protected byte[] _temp
return byte[]