ServiceId.UniqueId最大长度和格式 [英] ServiceId.UniqueId Maximum Length and Format

查看:101
本文介绍了ServiceId.UniqueId最大长度和格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个 Item (例如 Task )在Exchange Web服务(EWS)托管API中,其Id属性的类型为 UniqueId (继承自

Every Item (e.g. Task) in Exchange Web Services (EWS) Managed API has an Id property of type ItemId, which then has a String property named UniqueId (inherited from ServiceId — phew, got that?).

我打算将<​​c5>的值保留在数据库中,所以我需要知道列的最大长度应该是多少.一些测试表明,它的长度至少为152个字节,但看起来好像是一个奇怪的最大值.

I'm planning to keep the value of UniqueId in a database so I need to know what the maximum length of the column should be. Some testing shows that it's at least 152 bytes in length, but that seems like a strange size for a maximum.

该问题的第二部分是值的格式.可以将其解析为更常见的类型吗,例如 Guid ?我知道我在抓稻草.

A second part to this question is the format of the value. Is this something that can be parsed into a more common type, like a Guid? I'm grasping at straws, I know.

推荐答案

为了安全起见,我们建议

To be safe, we've suggested setting aside 512 characters for the EWS identifier. While I don't expect that it will ever be lengthened to near 512 characters, Microsoft reserves the right to change the format. I highly doubt Exchange will change the format at this point.

关于标识符的格式-它旨在为不透明的,因此不应进行解析或重构.

Regarding the format of the identifier -- it is intended to be opaque and so it should be neither parsed nor reconstructed.

这篇关于ServiceId.UniqueId最大长度和格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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