将 Exchange 文件夹分类为杰出文件夹和普通文件夹
我的问题是,当我尝试使用 findFolder Web 服务方法获取用户文件夹列表时,如何区分可区分的文件夹和用户创建的文件夹:
FindFolderType request = new FindFolderType();
request.setTraversal(FolderQueryTraversalType.DEEP);
FolderResponseShapeType folderResponseShapeType = new FolderResponseShapeType();
folderResponseShapeType.setBaseShape(DefaultShapeNamesType.ALL_PROPERTIES);
request.setFolderShape(folderResponseShapeType);
NonEmptyArrayOfBaseFolderIdsType folderIds = new NonEmptyArrayOfBaseFolderIdsType();
DistinguishedFolderIdType folderId = new DistinguishedFolderIdType();
folderId.setId(DistinguishedFolderIdNameType.MSGFOLDERROOT);
folderIds.getFolderIdOrDistinguishedFolderId().add(folderId);
request.setParentFolderIds(folderIds);
//response
Holder<FindFolderResponseType> findFolderResult = new Holder<FindFolderResponseType>();
addHandlers(port);
port.findFolder(
request,
getImpersonation(smtpAddress),
getSerializedSecurityContextType(),
MAILBOX_CULTURE,
getServerVersion(),
findFolderResult,
serverVersion);
我看不到任何可以区分这些文件夹的属性2 种文件夹。
谢谢
My question is how to make difference between a distinguished folders and a folder created by user when I try to obtain the list of user folders using findFolder
web service method:
FindFolderType request = new FindFolderType();
request.setTraversal(FolderQueryTraversalType.DEEP);
FolderResponseShapeType folderResponseShapeType = new FolderResponseShapeType();
folderResponseShapeType.setBaseShape(DefaultShapeNamesType.ALL_PROPERTIES);
request.setFolderShape(folderResponseShapeType);
NonEmptyArrayOfBaseFolderIdsType folderIds = new NonEmptyArrayOfBaseFolderIdsType();
DistinguishedFolderIdType folderId = new DistinguishedFolderIdType();
folderId.setId(DistinguishedFolderIdNameType.MSGFOLDERROOT);
folderIds.getFolderIdOrDistinguishedFolderId().add(folderId);
request.setParentFolderIds(folderIds);
//response
Holder<FindFolderResponseType> findFolderResult = new Holder<FindFolderResponseType>();
addHandlers(port);
port.findFolder(
request,
getImpersonation(smtpAddress),
getSerializedSecurityContextType(),
MAILBOX_CULTURE,
getServerVersion(),
findFolderResult,
serverVersion);
I can not see any property to distinct between these 2 types of folders.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 http://social.technet.microsoft.com/Forums/exchange/en-US/57551bd1-d1e1-4913-bbb2-e2abbca02a3f/如何区分用户创建的文件夹和所有消息文件夹?forum=exchangesvrdevelopment:
From http://social.technet.microsoft.com/Forums/exchange/en-US/57551bd1-d1e1-4913-bbb2-e2abbca02a3f/how-do-i-distinguish-the-user-create-folders-from-all-the-msgfolders?forum=exchangesvrdevelopment: