/// 指定したMailIndexのメールデータの文字列を本文の行数を指定してストリームに出力します。 /// <summary> /// Get mail text of specified mail index with indicate body line count. /// 指定したMailIndexのメールデータの文字列を本文の行数を指定してストリームに出力します。 /// </summary> /// <param name="stream"></param> /// <param name="mailIndex"></param> /// <param name="lineCount"></param> /// <returns></returns> public void GetMessageText(Stream stream, Int64 mailIndex, Int32 lineCount) { TopCommand cm = null; this.CheckAuthenticate(); try { cm = new TopCommand(mailIndex, lineCount); this.Execute(stream, cm); } catch (Exception ex) { throw new MailClientException(ex); } }
/// 指定したMailIndexのメールデータの文字列を本文の行数を指定して取得します。 /// <summary> /// Get mail text of specified mail index with indicate body line count. /// 指定したMailIndexのメールデータの文字列を本文の行数を指定して取得します。 /// </summary> /// <param name="mailIndex"></param> /// <param name="lineCount"></param> /// <returns></returns> public String GetMessageText(Int64 mailIndex, Int32 lineCount) { TopCommand cm = null; this.CheckAuthenticate(); try { cm = new TopCommand(mailIndex, lineCount); var rs = this.Execute(cm); return rs.Text; } catch (Exception ex) { throw new MailClientException(ex); } }