开发者

Confusion on SPFileVersionCollection and SPListItemVersionCollection

开发者 https://www.devze.com 2023-04-04 07:45 出处:网络
I have 17 versions on a file uploaded into a document library. When I use SPFileversionCollection, I get 16 versions, while SPListitemVersionCollection shows 17 versions.

I have 17 versions on a file uploaded into a document library. When I use SPFileversionCollection, I get 16 versions, while SPListitemVersionCollection shows 17 versions.

I think SPListItemVersionCollection contains draft version whereas the other one SPFileVersionCollection contains only published version.

But why there is a difference in number of returned 开发者_如何学运维versions?


The SPListItemVersionCollection object contains all the versions, including the current one.

The SPFileVersionCollection object does not include the current version.

Documents and versioning

0

精彩评论

暂无评论...
验证码 换一张
取 消