读msn联系人备忘
public string GetEmails()
{
Messenger messenger = new Messenger();
//messenger.ConversationCreated += new Messenger.ConversationCreatedHandler(ConversationCreated);
messenger.Connect("billowdragon@hotmail.com", "dragon753");
//labShow.Text = "登陆完成";
messenger.SynchronizeList();
//Response.Write("登陆成功!");
messenger.SetStatus(MSNStatus.Hidden); // 设置上线
Thread.Sleep(1000);
System.Text.StringBuilder sbTemp = new System.Text.StringBuilder();
foreach (Contact contact in messenger.GetListEnumerator(MSNList.AllowedList))
{
if(sbTemp.Length>0)
sbTemp.Append(","+contact.Name+":"+contact.Mail);
else
sbTemp.Append(contact.Name + ":" + contact.Mail);
}
return sbTemp.ToString();
}