asp.net-mvc – DDay iCal – 添加一个与会者
发布时间:2020-05-24 02:30:47 所属栏目:asp.Net 来源:互联网
导读:如何在iCal活动中添加必要/可选的参加者组织者? 我正在使用优秀的DDay图书馆,并希望能够也能够add a CN,但在documentation,下载的例子或其他地方没有找到任何例子. 谢谢! 我得到一个解决方案不是很整齐,但它为我工作. iCalendar calendar = new iCalendar()
|
如何在iCal活动中添加必要/可选的参加者组织者? 我正在使用优秀的DDay图书馆,并希望能够也能够add a CN,但在documentation,下载的例子或其他地方没有找到任何例子. 谢谢! 解决方法我得到一个解决方案不是很整齐,但它为我工作.iCalendar calendar = new iCalendar();
calendar.Method = "PUBLISH";
Event evt = calendar.Create<Event>();
var attendes = new List<IAttendee>();
//required attendee
IAttendee attendee1 = new DDay.iCal.Attendee("MAILTO:myid@gmail.com")
{
CommonName = "Naveen Jose",Role = "REQ-PARTICIPANT"
};
attendes.Add(attendee1);
//optional attendee
IAttendee attendee2 = new DDay.iCal.Attendee("MAILTO:someid@codovations.com")
{
CommonName = "Noah Naveen",Role = "OPT-PARTICIPANT"
};
attendes.Add(attendee2);
if (attendes != null && attendes.Count > 0)
{
evt.Attendees = attendes;
} (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – ASP.net MVC验证钩
- asp.net-mvc – 如何将环境变量放在web.config中?
- asp.net-mvc – 路由:如何在url中隐藏动作名称?
- asp.net-mvc – 在ASP.NET MVC中定制授权
- 将ASP.Net MVC的单页添加到现有的Web窗体应用程序中?
- asp.net – 检查ASPX文件以确保资源键在RESX中引用了exsist
- Asp.net webForm设置允许表单提交Html的方法
- 防止为ASP.NET服务器控件打包标签
- asp.net-mvc – ASP.NET MVC推荐的依赖注入框架是什么?
- asp.net – .Net Core 2 Spa模板与角度材料
推荐文章
站长推荐
- asp.net-mvc – ASP MVC 5项目’New Scaffolded
- asp.net – 在IIS 7或IIS 7.5集成模式下,默认文档
- asp.net-mvc-3 – ASP.NET MVC 3和Razor的ASHX处
- asp.net-mvc – 类型“表达式”在未引用的程序集
- asp.net-mvc – MVC Razor HTML助手语法:Viewba
- asp.net-mvc – 如何拦截视图渲染以在所有部分视
- asp经典 – 经典ASP文本替换和UTF-8编码
- ASP.NET如何确定是否排队请求?
- asp.net-mvc – 使用OWIN的Google身份验证Oauth在
- asp.net-mvc – 什么是防伪令牌盐的使用?
热点阅读
