Recently I worked on a project that involved MOSS 2007 publishing sites and the
SPFile object contains a couple of properties holding version information:
UIVersionLabel which is a string type and returns the version number of a page while
UIVersion is an integer type that returns the version as a numeric value making it easier to compare in
code. It appears as though the first nine bits of this property holds the minor version number. So to check if a file is grater then version 1.0 you can perform
(UIVersion > 512) and to check if the page has also been approved and published, you may also perfrom
(UIVersion % 512) == 0.
1 comments:
Thanks for sharing your ideas on sharepoint. It's a great to tool for businesses but adoption is a problem about it. We help you with that matter.
Post a Comment