我应该使用GUID或DefaultExtendedPropertySet.PublicStrings在构造ExtendedPropertyDefinition? [英] Should I use GUID or DefaultExtendedPropertySet.PublicStrings while constructing ExtendedPropertyDefinition?

查看:306
本文介绍了我应该使用GUID或DefaultExtendedPropertySet.PublicStrings在构造ExtendedPropertyDefinition?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用EWS托管API 1.2与Exchange Server 2007的它执行某种邮件同步的开发C#.NET框架4.5的Windows窗体应用程序。

I am developing C# .NET Framework 4.5 Windows Form application using EWS Managed API 1.2 with Exchange Server 2007 which performs some sort of syncing of mails.

现在,我我处理扩展属性,我想清楚一些事情:

Now that I am dealing with Extended Properties, I want to be clear some things:

Q1 什么是目的 DefaultExtendedPropertySet 类? MSDN 说:定义默认设置扩展属性。

Q1. What is the purpose of DefaultExtendedPropertySet class? MSDN says "Defines the default sets of extended properties."


  • 是刚组的扩展属性?

  • 如果是,为什么在第一个地方有分组?

  • 请我们可以获取属于同一组上一个项目所有扩展属性值的EWS API的方法?

Q2。我不能决定我是否应该使用自定义的GUID或 DefaultExtendedPropertySet.PublicStrings 在构造 ExtendedPropertyDefinition

Q2. I am unable to decide whether should I use custom GUID or DefaultExtendedPropertySet.PublicStrings while constructing ExtendedPropertyDefinition:

var MyXProp = new ExtendedPropertyDefinition(
             DefaultExtendedPropertySet.PublicStrings, 
            "MyXProp", MapiPropertyType.String);

Guid MyPropertySetId = new Guid("{C11FF724-AA03-4555-9952-FA248A11C3E}");            
var extendedPropertyDefinition = new ExtendedPropertyDefinition(
             MyPropertySetId, "MyXProp", MapiPropertyType.String);



查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆