ServiceId.UniqueId最大长度和格式 [英] ServiceId.UniqueId Maximum Length and Format
问题描述
每个 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屋!