-
Notifications
You must be signed in to change notification settings - Fork 2
List item metadata
takerusilt edited this page Sep 14, 2016
·
2 revisions
When a model is fetched from SharePoint database, apart from the defined properties, there is a numerous of metadata available for the information of the list item.
They are exposed by the ISPModelMetaData
interface from SPModel.GetMetaData()
.
Property | Description | Queryable [1] |
---|---|---|
ID |
ID of the list item in a particular list | Yes |
UniqueId |
Unique ID of the list item throughout the site collection | Yes |
SiteId |
ID of the site collection which the list item belongs to | - |
WebId |
ID of the site which the list item belongs to | - |
ListId |
ID of the list which the list item belongs to | - |
FileRef |
Server-relative URL of the list item | Yes |
FileLeafRef |
File name of the list item | Yes |
LastModified |
Last modified time of the list item | Yes |
ContentTypeId |
ID of the content type of the list item | - |
Version |
Version number of the list item | - |
EffectivePermissions |
Permission the user has on the list item | - |
CheckOutUserID |
ID of the user who checked out this list item; 0 if it is not checked out |
Yes |
HitHighlightSummary |
Only available when the model is returned through a FAST Search query | - |
[1] Queryable - Properties that are recognized by SPModel-to-LINQ, that is
you can do .Where(x => x.GetMetadata().ID == id)
.
-
Working with list items
-
Advanced model class usage
-
Other features