�擾���� UIDL ��Uidl�Ŏ擾�ł��܂��B
no��UidlAll��w�肷��ƁA POP3 �T�[�o��ɂ��邷�ׂẴ��[���� UIDL ��擾���܂��B
�w��̃��[���ԍ�(�ϐ���:no)�� UIDL ��擾����B using(nMail.Pop3 pop = new nMail.Pop3("mail.example.com")) { try { pop.Connect(); pop.Authenticate("pop3_id", "password"); pop.GetUidl(no); MessageBox.Show("Uidl=" + pop.Uidl); } catch(nMail.nMailException nex) { MessageBox.Show(String.Format("�G���[ �ԍ�:{0:d} ���b�Z�[�W:{1:s}", nex.ErrorCode, nex.Message)); } catch(Exception ex) { MessageBox.Show(String.Format("�G���[ ���b�Z�[�W:{0:s}", ex.Message)); } }
' VB.NET 2005 �ȍ~�̏ꍇ�AC# �Ɠ��l�� using ���g�p�ł��܂��B Dim pop As nMail.Pop3 = New nMail.Pop3("mail.example.com") Try pop.Connect() pop.Authenticate("pop3_id", "password") pop.GetUidl(no) MessageBox.Show("Uidl=" + pop.Uidl) Catch nex As nMail.nMailException MessageBox.Show(String.Format("�G���[ �ԍ�:{0:d} ���b�Z�[�W:{1:s}", nex.ErrorCode, nex.Message)) Catch ex As Exception MessageBox.Show(String.Format("�G���[ ���b�Z�[�W:{0:s}", ex.Message)) Finally pop.Dispose() End Try
public GetUidl ( int no ) : void | ||
no | int | ���[���ԍ� |
return | void |