【发布时间】:2015-03-02 18:27:41
【问题描述】:
您好,我需要通过 gmail 的 pop3 计数消息。我有这个代码。
public int MessageCount
{
get
{
sWriter.WriteLine("stat");
sWriter.Flush();
string[] splitResponse = GetResponse().Split(' ');
return Convert.ToInt32(splitResponse[1]);
}
}
错误:在 ImapDemo.exe 中出现“System.IndexOutOfRangeException”类型的第一次机会异常 你能帮忙吗?
【问题讨论】: