示例#1
0
文件: Program.cs 项目: sasaji/EwsTest
        static void Main(string[] args)
        {
            string password = EnterPassword("*****@*****.**");

            //NotifyTest(args);
            //RemoveFolder(ExchangeServiceFactory.CreateByWebCredential("*****@*****.**", password), "テストフォルダー");
            //UploadEmail(ExchangeServiceFactory.CreateByWebCredential("*****@*****.**", password));
            //ShowItems(ExchangeServiceFactory.CreateByWebCredential("*****@*****.**", password));
            //CreateContact(ExchangeServiceFactory.CreateByWebCredential("*****@*****.**", password));
            ShowContacts(ExchangeServiceFactory.CreateByWebCredential("*****@*****.**", password));
        }
示例#2
0
文件: User.cs 项目: sasaji/EwsTest
 public User(string id, string password, string watermark)
 {
     Id           = id;
     Service      = ExchangeServiceFactory.CreateByNetworkCredential(id, password);
     Subscription = PullSubscriptionFactory.Create(Service, watermark);
 }