开发者

Confusion on SPFileVersionCollection and SPListItemVersionCollection

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜