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)); }
public User(string id, string password, string watermark) { Id = id; Service = ExchangeServiceFactory.CreateByNetworkCredential(id, password); Subscription = PullSubscriptionFactory.Create(Service, watermark); }