我曾试图在与EWS的约会上使用扩展属性,但我似乎无法再次找到约会.set属性部分等于此问题中显示的属性:
如何从ASP.NET中的Exchange Web Service托管API 2.0更新约会
当我尝试检索约会时,我遵循了以下示例:
http://msdn.microsoft.com/en-us/uc14trainingcourse_5l_topic3#_Toc254008129 http://msdn.microsoft.com/en-us/library/exchange/dd633697(v=exchg.80).aspx
但是当我进行查找时,我从未得到任何约会.
这是查找的代码:
ItemView view = new ItemView(10);
// Get the GUID for the property set.
Guid MyPropertySetId = new Guid("{" + cGuid + "}");
// Create a definition for the extended property.
ExtendedPropertyDefinition extendedPropertyDefinition =
new ExtendedPropertyDefinition(MyPropertySetId, "AppointmentID", MapiPropertyType.String);
view.PropertySet =
new PropertySet(
BasePropertySet.IdOnly,
ItemSchema.Subject,
AppointmentSchema.Start,
AppointmentSchema.End, extendedPropertyDefinition);
SearchFilter filter = new SearchFilter.Exists(extendedPropertyDefinition);
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, filter,
view);
Run Code Online (Sandbox Code Playgroud)
任何帮助是极大的赞赏.
编辑: 当我尝试创建属性时,如文档所示:
http://msdn.microsoft.com/en-us/library/exchange/dd633654(v=exchg.80).aspx
它失败了,因为它是一个Guid我添加为属性值.: - /
再次编辑: 刚刚尝试获取今天的所有约会,并从我刚刚创建的约会获取属性,并且它与我存储的相同,没有{},因此它必须与过滤器一起使用.
再次编辑* 它有一些关系
ExtendedPropertyDefinition extendedProperty …Run Code Online (Sandbox Code Playgroud)