This project has moved and is read-only. For the latest updates, please go here.

Field Location in table PackageItem

Topics: Developer Forum
Feb 7, 2015 at 1:27 AM
Edited Feb 7, 2015 at 1:27 AM
Hi. Sorry for my english :)

I have a question about the value in the field 'Location' (MS SQL Database-> PackageItem):

This is generated in the following format {0}_{1}_{2}_{3}_{4} where
{0} = Site Collection ID = SPSite.ID
{1} = Web ID = SPWeb.ID
{2} = File ID = SPFile.UniqueId
{3} = Version ID = SPFile.UIVersion
{4} = Timestamp = SPFile.TimeLastModified

{0}_{1}_{2}_{3}_ 634617975610000000 - How to get this value of TimeLastModified ???
Feb 9, 2015 at 10:32 AM
Have a look at the SPFileLocation class in LearningComponents\SharePoint project.

The actual value is the .Ticks property of the date time value.

Note it's only SPFile.TimeLastModified if versioning is not on for the library, if it is on it, it's the Created time of the specific version.

SLK Coordinator
Marked as answer by sergeyLevchenkov on 2/9/2015 at 2:57 AM
Feb 9, 2015 at 10:59 AM
Richard, you saved me...
Thanks a lot.