创建约会展望 [英] Create an Appointment Outlook
问题描述
我想使用Outlook电子邮件向日历添加事件.对于我和其他用户,但登录时遇到问题.
I would like to add event to calendar using Outlook e-mail. For me and for other user but I have got problem to logging in.
我的应用程序是基于网络的
我找到了一个很好的例子:
I found a nice example:
http://msdn. microsoft.com/EN-US/library/office/ff184629(v=office.15).aspx
private void AllDayEventExample()
{
Outlook.AppointmentItem appt = Application.CreateItem(
Outlook.OlItemType.olAppointmentItem)
as Outlook.AppointmentItem;
appt.Subject = "Developer's Conference";
appt.AllDayEvent = true;
appt.Start = DateTime.Parse("6/11/2007 12:00 AM");
appt.End = DateTime.Parse("6/16/2007 12:00 AM");
appt.Display(false);
}
我的帐户
登录:Rafal
密码:12345678
Password: 12345678
域:测试
电子邮件:rafal@ss.ss
Email: rafal@ss.ss
Outlook网站: https://mail.ss
Outlook Website: https://mail.ss
朋友电子邮件:jhon@ss.ss
Friend email: jhon@ss.ss
我也找到了这个,但我不知道如何使用它登录
// If not, create a new instance of Outlook and log on to the default profile.
application = new Outlook.Application();
Outlook.NameSpace nameSpace = application.GetNamespace("MAPI");
nameSpace.Logon("", "", "", "");
nameSpace = null;
推荐答案
拉斐尔,
您可以使用Exchange Web服务来实现此目的:
You can use the Exchange Web Services to make this happen:
https://code.msdn.microsoft.com/office/Exchange-2013-101-Code-3c38582c
如果您碰巧在Office 365上(根据上面的屏幕截图我对此表示怀疑),则可以使用Office 365 API:
If you happen to be on Office 365 (which I doubt based on the screenshot above), you can use the Office 365 APIs:
http://msdn.microsoft.com/zh-cn/office/office365/api/calendar-rest-operations
这篇关于创建约会展望的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!